src/sb/XMPP/Client.php
final public function write($xml)
    {

        if($xml instanceof \SimpleXMLElement){
            $xml = $xml->asXML();
        } elseif($xml instanceof \DOMDocument){
            $xml = $xml->saveXML();
        }

        $this->log("SENT: ".$xml);

        return parent::write($xml);
    }
final public function write($xml)
    {

        if($xml instanceof \SimpleXMLElement){
            $xml = $xml->asXML();
        } elseif($xml instanceof \DOMDocument){
            $xml = $xml->saveXML();
        }

        $this->log("SENT: ".$xml);

        return parent::write($xml);
    }
final public function write ( $ xml ) { if ( $ xml instanceof \ SimpleXMLElement ) { $ xml = $ xml -> asXML ( ) ; } elseif ( $ xml instanceof \ DOMDocument ) { $ xml = $ xml -> saveXML ( ) ; } $ this -> log ( "SENT: " . $ xml ) ; return parent :: write ( $ xml ) ; }
Writes XML to the socket client
@param mixed $xml Can be DOMDocument, SimpleXMLElement or string of XML
@return <type>
Writes XML to the socket client