Method XmlNode():getChild() Foundation
Gets a child node by name or ordinal.
:getChild( <nOrdinal> [,<cNS>] ) --> oChild | NIL
:getChild( <cName> [,<cNS>]) --> oChild | NIL
An XmlNode() object representing the child node specified in the parameter <cName> or <nOrdinal>. If no child node exists with the specified name, or if the ordinal position is out of range, the method returns NIL.
The method :getChild() returns a specific child node which can be specified either by name, or by ordinal position. Note that if a node name is specified in the <cName> parameter and several child nodes exist with this name, only the first node is returned by :getChild(). In this case, the search may optionally be qualified further by using the <cNS> parameter to specify the namespace the child belongs to. Use the method :getChilds() for retrieving multiple child nodes.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.