public function serializeToXml()
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><CORSConfiguration></CORSConfiguration>');
        foreach ($this->rules as $rule) {
            $xmlRule = $xml->addChild('CORSRule');
            $rule->appendToXml($xmlRule);
        }
        return $xml->asXML();
    }
public function serializeToXml()
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><CORSConfiguration></CORSConfiguration>');
        foreach ($this->rules as $rule) {
            $xmlRule = $xml->addChild('CORSRule');
            $rule->appendToXml($xmlRule);
        }
        return $xml->asXML();
    }
public function serializeToXml ( ) { $ xml = new \ SimpleXMLElement ( '<?xml version="1.0" encoding="utf-8"?><CORSConfiguration></CORSConfiguration>' ) ; foreach ( $ this -> rules as $ rule ) { $ xmlRule = $ xml -> addChild ( 'CORSRule' ) ; $ rule -> appendToXml ( $ xmlRule ) ; } return $ xml -> asXML ( ) ; }
Serialize the object into xml string.

@return string
Serialize the object into xml string .