'Send data over the XML stream.
When there is no established XML stream, the data is queued and sent
out when a new XML stream has been established and initialized.
@param obj: data to be sent over the XML stream. This is usually an
object providing L{domish.IElement}, or serialized XML. See
L{xmlstream.XmlStream} for details.'

def send(self, obj):

    if (self.xmlstream != None):
        self.xmlstream.send(obj)
    else:
        self._packetQueue.append(obj)
