public function importStreamWriter(XmlStreamWriter $writer): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($writer)
                {
                    $parent->appendChild($this->doc->importNode(
                            $writer->asDom()->documentElement,
                            true
                    ));
                },
                'imported nodes'
        );
    }
public function importStreamWriter(XmlStreamWriter $writer): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($writer)
                {
                    $parent->appendChild($this->doc->importNode(
                            $writer->asDom()->documentElement,
                            true
                    ));
                },
                'imported nodes'
        );
    }
public function importStreamWriter ( XmlStreamWriter $ writer ) : XmlStreamWriter { return $ this -> append ( function ( \ DOMNode $ parent ) use ( $ writer ) { $ parent -> appendChild ( $ this -> doc -> importNode ( $ writer -> asDom ( ) -> documentElement , true ) ) ; } , 'imported nodes' ) ; }
Import another stream

@param   \stubbles\xml\XmlStreamWriter  $writer
@return  \stubbles\xml\XmlStreamWriter
@throws  \stubbles\xml\XmlException
Import another stream