XMLDocument.getChildFrom(path)

Returns first XML node matching the given path. This method finds and retrieves 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 getChildFrom returnes the first node that matchs the path, in this case the tag name "date" that corresponds to the date "May 26, 2005". 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) xmlNode = getChildFrom(xmlDoc, path : "date")

Arguments:

Name Type Description Mode
path String Path of tags to node in