Polycom Car Stereo System PDS 2000 Benutzerhandbuch
Parsing Rule Reference Guide
Appendix B: Data Parser
Polycom, Inc.
193
The following rule extracts whatever text lies between the fifth occurrence of
"here" and "there".
"here" and "there".
<ParsingRule Type="GetTag" Source="Source" Result="Replaced">
<StartTag>here</StartTag>
<EndTag>there</EndTag>
<Index>5</Index>
</ParsingRule>
<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.
The Source attribute is required, but ignored.
Parameters:
Url (taggable): The URL to download.
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.
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>
<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.
Source container.
Parameters: None.
Example:
<ParsingRule Type="InitCaps" Source="SomeSource" Result="Capitalized"
/>
<ParsingRule Type="InitCaps" Source="SomeSource" Result="Capitalized"
/>
Lcase
The Lcase rule converts to lowercase all the letters in the Source container.
Parameters: None
Parameters: None