Parsing Rule Reference Guide

Appendix B: Data Parser

 

 

The following rule extracts whatever text lies between the fifth occurrence of "here" and "there".

<ParsingRule Type="GetTag" Source="Source" Result="Replaced"> <StartTag>here</StartTag>

<EndTag>there</EndTag>

<Index>5</Index>

</ParsingRule>

GetUrl

The GetUrl rule downloads a file from a URL into the Result container.

The Source attribute is required, but ignored.

Parameters:

Url (taggable): The URL to download.

Example:

The following rule downloads the index.asp file from www.polycom.com and places its contents in the polycomHome container.

<ParsingRule Type="GetUrl" Source="" Result="polycomHome"> <Url>http://www.polycom.com/index.asp</Url> </ParsingRule>

InitCaps

The InitCaps rule converts to uppercase the first letter of every word in the

Source container.

Parameters: None.

Example:

<ParsingRule Type="InitCaps" Source="SomeSource" Result="Capitalized" />

Lcase

The Lcase rule converts to lowercase all the letters in the Source container.

Parameters: None

Polycom, Inc.

193

Page 203
Image 203
Polycom PDS 2000 manual GetUrl, InitCaps, Lcase