Required Parameters
- xpath: The 1-based index xpath of the specified segment to loop over. For example,
<arc:set attr="myinputitem.xpath" value="/Items/foo/" />.
Optional Parameters
- uri: An XML file URI. For example,
http://mydomain.com/resources/somedata.xml,/tmp/myfile.xml, or[FilePath]. - text: A readable handle reference to the XML data. This handle is created by the xmlOpen operation and is helpful when the input XML is not a file or raw text, or when it is necessary to perform multiple actions that access the file data of the document.
- handle: A readable handle reference to the XML data. This handle is created by the xmlOpen operation and is only necessary when the target XML is not an input file. See xmlOpen for details and examples.
Output Attributes
- xpath: Returns the full 1-based index xpath of the specified element being looped over. For example,
[myoutitem.xpath]resolves to the xpath of thefooXML element, which is/Items/foo[1]. - xname: Returns the name of the element being looped over. For example,
[myoutitem.xname]resolves to the name of thefooXML element, which isfoo.
Example
Consider the following XML, which is passed in as an input file:<colors> parent element, as shown below:
