Method XmlNode():setParent() Foundation

Sets the parent node.

:setParent( [<oParent>] ) --> self
An XmlNode() object specifying the parent node to assign this node object to. The <oParent> parameter is optional. If no value is passed, the relationship with the parent node is reset.

:setParent() returns the object executing the method.


The method :setParent() associates a node object with a parent node. If no parent node is specified, an existing association is reset, meaning the node object is no longer associated with another node object.


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.