Method XmlNode():removeChild() Foundation
Removes a child node by node name, ordinal or by object reference.
:removeChild( <nOrdinal> ) --> self | NIL
:removeChild( <cName> ) --> self | NIL
:removeChild( <oChild> ) --> self | NIL
The XmlNode() object that was removed from the child list. If the specified child node is not a child node, the ordinal position is out of range or if no child node could be found with the specified name, :removeChild() returns NIL.
The method :removeChild() removes a specific child node which can be specified either by name, by ordinal position or by directly specifying the corresponding node object. Note that if a node name is specified in the <cName> parameter and there several child nodes exist with this name, only the first node is removed by :removeChild(). Use the method :removeChilds() for removing 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.