array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'domnode.c14n.php', 1 => 'DOMNode::C14N', ), 'up' => array ( 0 => 'class.domnode.php', 1 => 'DOMNode', ), 'prev' => array ( 0 => 'domnode.appendchild.php', 1 => 'DOMNode::appendChild', ), 'next' => array ( 0 => 'domnode.c14nfile.php', 1 => 'DOMNode::C14NFile', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/domnode/c14n.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.2.0, PHP 7, PHP 8)
DOMNode::C14N — Canonicalize nodes to a string
$exclusive
= false
,$withComments
= false
,$xpath
= null
,$nsPrefixes
= null
Canonicalize nodes to a string
exclusive
Enable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes.
withComments
Retain comments in output.
xpath
An array of xpath
s to filter the nodes by.
nsPrefixes
An array of namespace prefixes to filter the nodes by.
Returns canonicalized nodes as a string or false
on failure