Difference between revisions of "Activity:GetXPathResult (Activity)"
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | The GetXPathResult Activity evaluates an [http://en.wikipedia.org/wiki/XPath XPath] expression in [http://en.wikipedia.org/wiki/XML XML] data. This data is typically provided by the [[Activity:ReadXPathDocument (Activity)|ReadXPathDocument]] activity or a predecessing GetXPathResult activity. | ||
+ | |||
+ | = Description = | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Get XPath Result | | title = Get XPath Result | ||
Line 9: | Line 12: | ||
| version = 2.1.15+ | | version = 2.1.15+ | ||
}} | }} | ||
− | |||
− | ==Arguments== | + | ===Arguments=== |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
Line 28: | Line 30: | ||
|} | |} | ||
− | ==Usage== | + | ===Usage=== |
This activity is typically used to find specific data within XML data, that was either provided by a ReadXPathDocument activity or by a previous GetXPathResult activity. | This activity is typically used to find specific data within XML data, that was either provided by a ReadXPathDocument activity or by a previous GetXPathResult activity. | ||
Line 38: | Line 40: | ||
If the file was successfully loaded it will be displayed as a tree structure directly in the designer. You can now start typing XPath expressions in the Expression box, they will be evaluated immediately as you type and return the filtered result in the tree view. | If the file was successfully loaded it will be displayed as a tree structure directly in the designer. You can now start typing XPath expressions in the Expression box, they will be evaluated immediately as you type and return the filtered result in the tree view. | ||
− | + | =Example= | |
Evaluate the following XML file against all elements that are named SAPObject, independently of the hierarchy level they appear: | Evaluate the following XML file against all elements that are named SAPObject, independently of the hierarchy level they appear: | ||
Line 91: | Line 93: | ||
| XPathExpression || <source lang = "vbnet">"//SAPObject"</source> | | XPathExpression || <source lang = "vbnet">"//SAPObject"</source> | ||
|} | |} | ||
+ | |||
+ | <headertabs /> | ||
==See also== | ==See also== | ||
Line 98: | Line 102: | ||
[[Category:XML]] | [[Category:XML]] | ||
− |
Latest revision as of 12:23, 23 February 2015
The GetXPathResult Activity evaluates an XPath expression in XML data. This data is typically provided by the ReadXPathDocument activity or a predecessing GetXPathResult activity.