May 2001
Intermediate to advanced
720 pages
23h 24m
English
XML.parentNode Property — a reference to the immediate ancestor of a node
Flash 5
theNode.parentNode
Read-only
The parentNode property returns a reference to the
node object from which theNode descends in
the XML object hierarchy. If theNode is
the top of the current hierarchy, parentNode
returns null.
In this XML source fragment, the MESSAGE node is
the parentNode of text node
"hey":
<MESSAGE>hey</MESSAGE>
Here the parentNode of the ROOM
node is the HOTEL node:
<HOTEL><ROOM><SIZE>Double</SIZE></ROOM></HOTEL>
XML
.childNodes,
XML
.firstChild,
XML
.lastChild,
XML
.previousSibling
Read now
Unlock full access