From http://www.w3schools.com (Copyright Refsnes Data)
Complete Attr Object Reference
The ownerDocument property returns the root element (document object) for a node.
| attrObject.ownerDocument |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and returns the root element of the first category attribute node:
Example
The output of the code above will be:
Try it yourself » |
Complete Attr Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)