public function setTo($to)
    {
        $attr = $this->createAttribute('to');
        $this->doc->appendChild($attr);
        $attr->appendChild($this->createTextNode($to));
    }
public function setTo($to)
    {
        $attr = $this->createAttribute('to');
        $this->doc->appendChild($attr);
        $attr->appendChild($this->createTextNode($to));
    }
public function setTo ( $ to ) { $ attr = $ this -> createAttribute ( 'to' ) ; $ this -> doc -> appendChild ( $ attr ) ; $ attr -> appendChild ( $ this -> createTextNode ( $ to ) ) ; }
Sets the to jid of the message
@param string $to e.g. paul.visco@chat.roswellpark.org
Sets the to jid of the message