XMLNode.OwnerDocument
From Xojo Documentation
Read-Only Property (As XMLDocument )
The XMLDocument that contains this node.
Notes
Use this property to get a reference to the XMLDocument that you can then use with the various "Create" methods to add new items to the XML. This is useful when you have access to an XMLNode, but no longer have a reference to the XMLDocument that contains it.