public function appendXml($xmlFragment) { $fragment = $this->getDocument()->createDocumentFragment(); $fragment->appendXML($xmlFragment); $this->appendChild($fragment); }