(self, oldChild)
| 1638 | return Node.appendChild(self, node) |
| 1639 | |
| 1640 | def removeChild(self, oldChild): |
| 1641 | try: |
| 1642 | self.childNodes.remove(oldChild) |
| 1643 | except ValueError: |
| 1644 | raise xml.dom.NotFoundErr() |
| 1645 | oldChild.nextSibling = oldChild.previousSibling = None |
| 1646 | oldChild.parentNode = None |
| 1647 | if self.documentElement is oldChild: |
| 1648 | self.documentElement = None |
| 1649 | |
| 1650 | return oldChild |
| 1651 | |
| 1652 | def _get_documentElement(self): |
| 1653 | for node in self.childNodes: |