Add child element with *tag* to *parent* if it doesn't already exist.
(parent, tag)
| 90 | element.set(name, default) |
| 91 | |
| 92 | def _required_child(parent, tag): |
| 93 | """ |
| 94 | Add child element with *tag* to *parent* if it doesn't already exist. |
| 95 | """ |
| 96 | if _child(parent, tag) is None: |
| 97 | parent.append(_Element(tag)) |
| 98 | |
| 99 | |
| 100 | # ============================================================================ |