Remove child elements with tagname (e.g. "a:p") in `tagnames`.
(self, *tagnames: str)
| 691 | return elm |
| 692 | |
| 693 | def remove_all(self, *tagnames: str) -> None: |
| 694 | """Remove child elements with tagname (e.g. "a:p") in `tagnames`.""" |
| 695 | for tagname in tagnames: |
| 696 | matching = self.findall(qn(tagname)) |
| 697 | for child in matching: |
| 698 | self.remove(child) |
| 699 | |
| 700 | @property |
| 701 | def xml(self) -> str: |
no test coverage detected