(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.
xpathEin Array von XPath-Ausdrücken, nach denen die Knoten gefiltert werden. Jeder Eintrag in diesem Array ist ein assoziatives Array mit
dem erforderlichen Schlüssel query, der den XPath-Ausdruck als Zeichenkette enthält.
dem optionalen Schlüssel namespaces, der ein Array enthält, das Namensraum-Präfixe (Schlüssel) auf Namensraum-URIs (Werte) abbildet.
nsPrefixesAn array of namespace prefixes to filter the nodes by.
Number of bytes writtenBei einem Fehler wird false zurückgegeben.