B

Appendix B: Data Parser

This appendix contains a tutorial, examples and a reference guide for creating custom data source definition files. Creating a data source definition is an advanced topic that requires in-depth knowledge of pattern matching, Internet protocols and formats such as HTTP, HTML and particularly XML.

This appendix includes the following sections:

Data Source Definition File Overview

Data Source Tutorial

Parsing Rule Reference Guide

Data Source Definition File Overview

A data source definition file contains a single XML <DataSource> element. A <DataSource> element contains a single <General> header element, followed by one or more <ParsingRule> and/or <DataItem> elements.

When Data Parser opens a definition file, it first reads the <General> element. Then it retrieves the data source's data and applies all top-level <ParsingRule> elements in the order they appear in the definition file. Finally, it applies all the <DataItem> elements, also in order of their appearance

.

Special Character

Replacement Entity Code

 

 

&

&

 

 

<

<

 

 

>

>

 

 

"

 

 

'

 

 

Polycom, Inc.

171

Page 181
Image 181
Polycom PDS 2000 manual Appendix B Data Parser, Data Source Definition File Overview