detach()
Detaches the receiver from its parent node.
Declaration
func detach()Discussion
This method is applicable to NSXMLNode objects representing elements, text, comments, processing instructions, attributes, and namespaces. Once the node object is detached, you can add it as a child node of another parent.