(PHP 5 >= 5.2.0, PHP 7, PHP 8)
DOMNode::C14NFile — Canonicalize nodes to a file
$uri,$exclusive = false,$withComments = false,$xpath = null,$nsPrefixes = nullCanonicalize nodes to a file.
uriPath to write the output to.
exclusiveEnable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes.
withCommentsRetain comments in output.
xpathUn array di XPath con cui filtrare i nodi. Ogni elemento di questo array è un array associativo con:
Una chiave obbligatoria query contenente l'espressione XPath sotto forma di stringa.
Una chiave opzionale namespaces contenente un array che associa i prefissi dei namespace (chiavi) agli URI dei namespace (valori).
nsPrefixesAn array of namespace prefixes to filter the nodes by.
Number of bytes written o false in caso di fallimento