hphp/hack/manual/apis/Classes/DOMNode/index.md
:::info[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. :::
class 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->cloneNode(bool $deep = false): this->getLineNo(): int->getNodePath(): mixed->hasAttributes(): bool->hasChildNodes(): bool->insertBefore<T as DOMNode>(DOMNode $newnode, DOMNode $refnode = NULL): T->isDefaultNamespace(string $namespaceuri): bool->isSameNode(DOMNode $node): bool->isSupported(string $feature, string $version): bool->lookupNamespaceUri(mixed $namespaceuri): string->lookupPrefix(string $namespaceURI): string->normalize(): void->removeChild(DOMNode $node): DOMNode->replaceChild<T as DOMNode>(DOMNode $newchildobj, DOMNode $oldchildobj): T