(self, parent, content)
| 305 | """ |
| 306 | |
| 307 | def append(self, parent, content): |
| 308 | if content.tag.startswith('_'): |
| 309 | attr = content.tag[1:] |
| 310 | value = tostr(content.value) |
| 311 | if value: |
| 312 | parent.set(attr, value) |
| 313 | else: |
| 314 | child = self.node(content) |
| 315 | child.setText(content.value) |
| 316 | parent.append(child) |