public function xml($xml = NULL)
{
return $this->content($xml, function ($node) {
return $this->build()->getInnerXml($node);
}, function ($node) {
return $this->build()->getFragment($node, 'text/xml', TRUE);
}, function ($node, $fragment) {
$this->modify($node)->replaceChildren($fragment);
});
}