Element Object
The parentNode property returns the parent node of the specified element.
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the parent node from the first <title> element in "books.xml":
The output of the code above will be:
Element Object
Your message has been sent to W3Schools.