Method XmlNode():setParent() Foundation

Sets the parent node.

Syntax
:setParent( [<oParent>] ) --> self
Parameters
<oParent>
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.
Return

:setParent() returns the object executing the method.

Description

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.

Feedback

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.