public function toXml()
    {
        $xml = new \SimpleXMLElement(
                '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><parser></parser>');
        
        $xml->addChild('fqdn', $this->fqdn);
        $xml->addChild('idn_fqdn', $this->idnFqdn);
        $xml->addChild('domain', $this->domain);
        $xml->addChild('idnDomain', $this->idnDomain);
        $xml->addChild('tld', $this->tld);
        $xml->addChild('idnTld', $this->idnTld);
        $xml->addChild('tldGroup', $this->tldGroup);
        $xml->addChild('validHostname', $this->validHostname);
        
        return $xml->asXML();
    }
public function toXml()
    {
        $xml = new \SimpleXMLElement(
                '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><parser></parser>');
        
        $xml->addChild('fqdn', $this->fqdn);
        $xml->addChild('idn_fqdn', $this->idnFqdn);
        $xml->addChild('domain', $this->domain);
        $xml->addChild('idnDomain', $this->idnDomain);
        $xml->addChild('tld', $this->tld);
        $xml->addChild('idnTld', $this->idnTld);
        $xml->addChild('tldGroup', $this->tldGroup);
        $xml->addChild('validHostname', $this->validHostname);
        
        return $xml->asXML();
    }
public function toXml ( ) { $ xml = new \ SimpleXMLElement ( '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><parser></parser>' ) ; $ xml -> addChild ( 'fqdn' , $ this -> fqdn ) ; $ xml -> addChild ( 'idn_fqdn' , $ this -> idnFqdn ) ; $ xml -> addChild ( 'domain' , $ this -> domain ) ; $ xml -> addChild ( 'idnDomain' , $ this -> idnDomain ) ; $ xml -> addChild ( 'tld' , $ this -> tld ) ; $ xml -> addChild ( 'idnTld' , $ this -> idnTld ) ; $ xml -> addChild ( 'tldGroup' , $ this -> tldGroup ) ; $ xml -> addChild ( 'validHostname' , $ this -> validHostname ) ; return $ xml -> asXML ( ) ; }
Convert properties to xml by using SimpleXMLElement

@return string
Convert properties to xml by using SimpleXMLElement