(self, parent, content)
| 188 | """ |
| 189 | |
| 190 | def append(self, parent, content): |
| 191 | if content.tag.startswith('_'): |
| 192 | attr = content.tag[1:] |
| 193 | value = tostr(content.value) |
| 194 | if value: |
| 195 | parent.set(attr, value) |
| 196 | else: |
| 197 | child = self.node(content) |
| 198 | child.setText(tostr(content.value)) |
| 199 | parent.append(child) |
| 200 | |
| 201 | |
| 202 | class NoneAppender(Appender): |