source/Core/SimpleXml.php
public function objectToXml($oInput, $sDocument)
    {
        $oXml = new SimpleXMLElement("<?xml version=\"1.0\" encoding=\"utf-8\"?><$sDocument/>");
        $this->_addSimpleXmlElement($oXml, $oInput);

        return $oXml->asXml();
    }
public function objectToXml($oInput, $sDocument)
    {
        $oXml = new SimpleXMLElement("<?xml version=\"1.0\" encoding=\"utf-8\"?><$sDocument/>");
        $this->_addSimpleXmlElement($oXml, $oInput);

        return $oXml->asXml();
    }
public function objectToXml ( $ oInput , $ sDocument ) { $ oXml = new SimpleXMLElement ( "<?xml version=\"1.0\" encoding=\"utf-8\"?><$sDocument/>" ) ; $ this -> _addSimpleXmlElement ( $ oXml , $ oInput ) ; return $ oXml -> asXml ( ) ; }
Parses object structure to XML string

@param object $oInput    Input object
@param string $sDocument Document name.

@return string
Parses object structure to XML string