Parsing Rule Reference Guide Appendix B: Data Parser
Polycom, Inc. 199
StrCat
The StrCat rule concatenates two strings, optionally adding a space between
them.
The Source attribute is required, but ignored.
Parameters:
• String1 (taggable): The string that will be the start of the result.
• String2 (taggable): The string that will be the end of the result.
• AddSpace (optional): If set to TRUE, a space is inserted between the
String1 and String2.
Examples:
The following rule places "eatcake" into the Food container.
<ParsingRule Type="StrCat" Source="" Result="Food">
<String1>eat</String1>
<String1>cake</String1>
</ParsingRule>
The following rule places "eat cake" into the Food container.
<ParsingRule Type="StrCat" Source="" Result="Food">
<String1>eat</String1>
<String1>cake</String1>
<AddSpace>true</AddSpace>
</ParsingRule>
If the Snack container contains "pizza" then the following rule places "eat
pizza" into the Food container.
<ParsingRule Type="StrCat" Source="" Result="Food">
<String1>eat</String1>
<String1>|Snack|</String1>
<AddSpace>true</AddSpace>
</ParsingRule>
Trim
The Trim rule removes any leading and trailing spaces from the Source
container.
Parameters: None.
Example:
If the LotsOfSpace container contains " hello " then the following rule places
"hello" (without any leading or trailing spaces) in the LeanAndMean
container.
<ParsingRule Type="Trim" Source="LotsOfSpace" Result="LeanAndMean" />