Returns an indexed array of XML node children nodes given a path. This method finds and retrieves all the node that matchs the path given as parameter. The example below creates an XML document with two nodes with the same tag "date". The getChildrenFrom returnes both of them. xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><invoice><customer>John Doe</customer><date>May 26, 2005</date><date>May 27, 2005</date><serviceDescription>SOME SERVICE</serviceDescription><serviceAmmount>1000.0</serviceAmmount><taxes IVA=\"21%\">210.0</taxes><total>1210.0</total></invoice>" xmlDoc = XMLDocument.create(content : xmlFileContent) xmlNodeList = getChildrenFrom(xmlNodeRoot, path : "date") display length(xmlNodeList) for each i in xmlNodeList do display i.tag display i.text end
| Name | Type | Description | Mode |
|---|---|---|---|
| path | String | path of tags to node | in |