Remove the specified child element or attribute. @param child: A child to remove. @type child: L{Element}|L{Attribute} @return: The detached I{child} when I{child} is an element, else None. @rtype: L{Element}|None
(self, child)
| 353 | return self |
| 354 | |
| 355 | def remove(self, child): |
| 356 | """ |
| 357 | Remove the specified child element or attribute. |
| 358 | @param child: A child to remove. |
| 359 | @type child: L{Element}|L{Attribute} |
| 360 | @return: The detached I{child} when I{child} is an element, else None. |
| 361 | @rtype: L{Element}|None |
| 362 | """ |
| 363 | if isinstance(child, Element): |
| 364 | return child.detach() |
| 365 | if isinstance(child, Attribute): |
| 366 | self.attributes.remove(child) |
| 367 | return None |
| 368 | |
| 369 | def replaceChild(self, child, content): |
| 370 | """ |
no test coverage detected