src/Xml/Writer.php
public static function createXml($structure, $encoding = null)
    {
        $writer = new static($structure, $encoding);
        return trim($writer->toString());
    }
public static function createXml($structure, $encoding = null)
    {
        $writer = new static($structure, $encoding);
        return trim($writer->toString());
    }
public static function createXml ( $ structure , $ encoding = null ) { $ writer = new static ( $ structure , $ encoding ) ; return trim ( $ writer -> toString ( ) ) ; }
Convert the passed array structure to an xml string.

@param array $structure The array representation of the xml structure
@param string $encoding The encoding to declare in the <?xml tag

@return string
Convert the passed array structure to an xml string .