DOMNameSpaceNode
Note
This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.
Interface Synopsis
class DOMNameSpaceNode extends DOMNode {...}
Public Methods (DOMNode)
->C14N(bool $exclusive = false, bool $with_comments = false, ?darray $xpath = NULL, ?varray $ns_prefixes = NULL): string->C14NFile(string $uri, bool $exclusive = false, bool $with_comments = false, ?darray $xpath = NULL, ?varray $ns_prefixes = NULL): int->C14Nfile(string $uri, bool $exclusive = false, bool $with_comments = false, mixed $xpath = NULL, mixed $ns_prefixes = NULL): mixed->__construct(): void->__debugInfo(): darray<string, mixed>->appendChild<T as DOMNode>(DOMNode $newnode): T
This functions appends a child to an existing list of children or creates a new list of children->cloneNode(bool $deep = false): this
Creates a copy of the node->getLineNo(): int
Gets line number for where the node is defined->getNodePath(): mixed->hasAttributes(): bool
This method checks if the node has attributes->hasChildNodes(): bool
This function checks if the node has children->insertBefore<T as DOMNode>(DOMNode $newnode, DOMNode $refnode = NULL): T
This function inserts a new node right before the reference node->isDefaultNamespace(string $namespaceuri): bool
Tells whether namespaceURI is the default namespace->isSameNode(DOMNode $node): bool
This function indicates if two nodes are the same node->isSupported(string $feature, string $version): bool
Checks if the asked feature is supported for the specified version->lookupNamespaceUri(mixed $namespaceuri): string
Gets the namespace URI of the node based on the prefix->lookupPrefix(string $namespaceURI): string
Gets the namespace prefix of the node based on the namespace URI->normalize(): void
Normalizes the node->removeChild(DOMNode $node): DOMNode
This functions removes a child from a list of children->replaceChild<T as DOMNode>(DOMNode $newchildobj, DOMNode $oldchildobj): T
This function replaces the child oldnode with the passed new node