phpday 2025 - Call For Papers

The DOMNameSpaceNode class

(PHP 5, PHP 7, PHP 8)

Sınıf Sözdizimi

class DOMNameSpaceNode {
/* Özellikler */
public readonly string $nodeName;
public readonly ?string $nodeValue;
public readonly int $nodeType;
public readonly string $prefix;
public readonly ?string $localName;
public readonly ?string $namespaceURI;
public readonly bool $isConnected;
public readonly ?DOMDocument $ownerDocument;
public readonly ?DOMNode $parentNode;
public readonly ?DOMElement $parentElement;
/* Yöntemler */
public __sleep(): array
public __wakeup(): void
}

Özellikler

nodeName

The qualified name of this node.

nodeValue

The namespace URI declared by this node, or null if 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 null if it is unspecified.

isConnected

Whether the node is connected to a document.

ownerDocument

The DOMDocument object associated with this node, or null if 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.

Sürüm Bilgisi

Sürüm: Açıklama
8.3.0 Properties DOMNameSpaceNode::$parentElement, and DOMNameSpaceNode::$isConnected have been added.

İçindekiler

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top