The DOMNameSpaceNode class
(PHP 5, PHP 7, PHP 8)
Class synopsis
class DOMNameSpaceNode {
/* Properties */
/* Methods */
}Properties
- nodeName
The qualified name of this node.
- nodeValue
The namespace URI declared by this node, or
nullif the empty namespace.- nodeType
The type of the node. In this case it returns
XML_NAMESPACE_DECL_NODE.- prefix
The namespace prefix declared by this node.
- localName
The local part of the qualified name of this node.
- namespaceURI
The namespace URI declared by this node, or
nullif it is unspecified.- isConnected
Whether the node is connected to a document.
- ownerDocument
The DOMDocument object associated with this node, or
nullif this node is a DOMDocument- parentNode
The parent of this node. If there is no such node, this returns
null.- parentElement
The parent element of this node. If there is no such element, this returns
null.
Changelog
| Version | Description |
|---|---|
| 8.3.0 | Properties DOMNameSpaceNode::$parentElement, and DOMNameSpaceNode::$isConnected have been added. |
Table of Contents
- DOMNameSpaceNode::__sleep — Forbids serialization unless serialization methods are implemented in a subclass
- DOMNameSpaceNode::__wakeup — Forbids unserialization unless unserialization methods are implemented in a subclass
↑ and ↓ to navigate • Enter to select • Esc to close • / to open