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