'get an xml string representation'

def __unicode__(self):

    n = self.qname()
    if self.hasText():
        v = self.value.escape()
    else:
        v = self.value
    return (u'%s="%s"' % (n, v))
