XML Get Child Element List
Kalipso - Form - Actions - Actions Description - Group Communications - XML Get Child Element List
Gets the specified child element from a specified XML structure.
Action available for the following operating systems:
Parameters
XML <string> - The control, variable or a string that represents a XML file.
Remove Name's Prefix - This parameter allows user to define to remove the name's prefix or not. It can be one of:
1. Yes
2. No
Targets
List of Child Elements - Control or variable to save the list of child elements.
Number of Child Elements - Control or variable to save the number of listed child elements.
Return
Items separator <string> - The string separator to the list of child elements.
Usage
Consider the following XML files:
This XML is saved on VAR(XMLResponse).
This XML is saved on VAR(XMLResponse1).
Example 1
XML | VAR(XMLResponse) |
Remove Name´s Prefix | YES |
List of Child Elements | VAR(Elements) |
Number of Child Elements | VAR(NElements) |
Items Separator | "<13>" |
Result:
Variables | Content |
VAR(Elements) | stringstringstringstringstring stringstringstringstringstring |
VAR(NElements) | 10 |
Example 2
XML | VAR(XMLResponse1) |
Remove Name´s Prefix | NO |
List of Child Elements | VAR(Elements) |
Number of Child Elements | VAR(NElements) |
Items Separator | "<13>" |
Result:
Variables | Content |
VAR(Elements) | m:AllForwardsResponse |
VAR(NElements) | 1 |
The parameter Items Separator is coded.
Last updated