public function serializeToXml()
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><WebsiteConfiguration></WebsiteConfiguration>');
        $index_document_part = $xml->addChild('IndexDocument');
        $error_document_part = $xml->addChild('ErrorDocument');
        $index_document_part->addChild('Suffix', $this->indexDocument);
        $error_document_part->addChild('Key', $this->errorDocument);
        return $xml->asXML();
    }
public function serializeToXml()
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><WebsiteConfiguration></WebsiteConfiguration>');
        $index_document_part = $xml->addChild('IndexDocument');
        $error_document_part = $xml->addChild('ErrorDocument');
        $index_document_part->addChild('Suffix', $this->indexDocument);
        $error_document_part->addChild('Key', $this->errorDocument);
        return $xml->asXML();
    }
public function serializeToXml ( ) { $ xml = new \ SimpleXMLElement ( '<?xml version="1.0" encoding="utf-8"?><WebsiteConfiguration></WebsiteConfiguration>' ) ; $ index_document_part = $ xml -> addChild ( 'IndexDocument' ) ; $ error_document_part = $ xml -> addChild ( 'ErrorDocument' ) ; $ index_document_part -> addChild ( 'Suffix' , $ this -> indexDocument ) ; $ error_document_part -> addChild ( 'Key' , $ this -> errorDocument ) ; return $ xml -> asXML ( ) ; }
Serialize the WebsiteConfig object into xml string.

@return string
@throws OssException
Serialize the WebsiteConfig object into xml string .