Each node in a DOM Document possesses a reference to both its parent and the DOM Document itself.
The parent of a node can be accessed through the parentNode property:
$cdLibraryNode =& cdNode->parentNode;
A DOM Document reference can be retrieved via the ownerDocument property:
$myCDCollectionDoc =& cdNode->ownerDocument;
|