src/Writer.php
public function dump($data, $rootName = 'root')
    {
        $dom = $this->writeToDom($data, $rootName);

        return $dom->saveXML();
    }
public function dump($data, $rootName = 'root')
    {
        $dom = $this->writeToDom($data, $rootName);

        return $dom->saveXML();
    }
public function dump ( $ data , $ rootName = 'root' ) { $ dom = $ this -> writeToDom ( $ data , $ rootName ) ; return $ dom -> saveXML ( ) ; }
Dump the input data to a xml string.

@param mixed $data
@param string $rootName the xml root element name

@return string
Dump the input data to a xml string .