The DOMNameSpaceNode class
(PHP 5, PHP 7, PHP 8)
Class synopsis
Properties
nodeNameThe qualified name of this node.
nodeValue
The namespace URI declared by this node, or null if the empty namespace.
The type of the node. In this case it returns
XML_NAMESPACE_DECL_NODE
.
The namespace prefix declared by this node.
localNameThe local part of the qualified name of this node.
namespaceURI
The namespace URI declared by this node, or null if it is unspecified.
Whether the node is connected to a document.
ownerDocument
The DOMDocument object associated with this node,
or null if this node is a DOMDocument
The parent of this node.
If there is no such node, this returns null.
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
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
