Polycom PDS 2000 Car Stereo System User Manual


 
Polycom Digital Signage Administrator Guide Parsing Rule Reference Guide
192 Polycom, Inc.
Parsing Rule Reference Guide
This section describes all the parsing rules you can use with Data Parser.
GetImage
The GetImage rule downloads a file (not just image files) from a URL to a local
file.
The Source and Result attributes are required, but ignored.
Parameters:
Url (taggable): The URL for the file to download.
LocalFilename (taggable): The path and name to save the file as.
Example:
The following rule downloads the file home_main_polycom.jpg from
www.polycom.com and saves it as C:\polycom_banner.jpg.
<
ParsingRule Type="GetImage" Source="" Result="">
<Url>http://www.polycom.com/images/home_main_polycom.jpg</Url>
<LocalFilename>C:\polycom_banner.jpg</LocalFilename>
</ParsingRule>
GetTag
The GetTag rule extracts text from between a pair of strings.
Parameters:
StartTag (taggable): The starting delimiter of the text to extract.
EndTag (taggable): The ending delimiter of the text to extract.
Index (optional): Which occurrence of the text to extract.
Examples:
The following rule extracts whatever text lies between the first occurrence of
"here" and "there".
<
ParsingRule Type="GetTag" Source="Source" Result="Replaced">
<StartTag>here</StartTag>
<EndTag>there</EndTag>
</ParsingRule>