public function writeXmlFragment(string $fragment): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($fragment)
                {
                    $fragmentNode = $this->doc->createDocumentFragment();
                    $fragmentNode->appendXML($fragment);
                    @$parent->appendChild($fragmentNode);
                },
                'document fragment'
        );
    }
public function writeXmlFragment(string $fragment): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($fragment)
                {
                    $fragmentNode = $this->doc->createDocumentFragment();
                    $fragmentNode->appendXML($fragment);
                    @$parent->appendChild($fragmentNode);
                },
                'document fragment'
        );
    }
public function writeXmlFragment ( string $ fragment ) : XmlStreamWriter { return $ this -> append ( function ( \ DOMNode $ parent ) use ( $ fragment ) { $ fragmentNode = $ this -> doc -> createDocumentFragment ( ) ; $ fragmentNode -> appendXML ( $ fragment ) ; @ $ parent -> appendChild ( $ fragmentNode ) ; } , 'document fragment' ) ; }
Write an xml fragment

@param   string  $fragment
@return  \stubbles\xml\XmlStreamWriter
Write an xml fragment