(PHP 8 >= 8.4.0)
This is the modern, spec-compliant equivalent ofDOMNode.
DOMNode::DOCUMENT_POSITION_DISCONNECTEDDOMNode::DOCUMENT_POSITION_PRECEDINGDOMNode::DOCUMENT_POSITION_FOLLOWINGDOMNode::DOCUMENT_POSITION_CONTAINSDOMNode::DOCUMENT_POSITION_CONTAINED_BYDOMNode::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFICGets the type of the node. One of the predefinedXML_*_NODE constants
The absolute base URI of this node ornull if the implementation wasn't able to obtain an absolute URI.
Whether the node is connected to a document
null if this node is a document.The parent of this node. If there is no such node, this returnsnull.
The parent element of this element. If there is no such element, this returnsnull.
The first child of this node. If there is no such node, this returnsnull.
The last child of this node. If there is no such node, this returnsnull.
The node immediately preceding this node. If there is no such node, this returnsnull.
The node immediately following this node. If there is no such node, this returnsnull.
The text content of this node and its descendants.
Note: The DOM extension uses UTF-8 encoding when working with methods or properties. The parser methods auto-detect the encoding or allow the caller to specify an encoding.
