XmlUtil

getChildNodeValue

Searches for and returns the textnode value of an XML child node contained in a list of child nodes. The list of nodes must be one from the leaf-level. Example: if the NodeList contains (in XML format): <record> <logId>1001</logId> <userName>jfernand</userName> <machineName>box2</machineName> </record> So, requesting the value for childNodeTagName "userName" will return "jfernand" Note: in XML, "jfernand" in the example above is considered a child node of the "userName" node

Parameters:

childNodes:List - of children from a parent node. In the example above, a list from the "record" node.

childNodeTagName: - Tag name of the node whose value you want to retrieve. In the example above, "userName".