get an xml string representation
(self)
| 169 | self.value) |
| 170 | |
| 171 | def __str__(self): |
| 172 | """ get an xml string representation """ |
| 173 | n = self.qname() |
| 174 | if self.hasText(): |
| 175 | v = self.value.escape() |
| 176 | else: |
| 177 | v = self.value |
| 178 | return u'%s="%s"' % (n, v) |
| 179 | |
| 180 | def __unicode__(self): |
| 181 | """ get an xml string representation """ |