(element: Any, tag: str, default: str = "")
| 18 | |
| 19 | |
| 20 | def _text(element: Any, tag: str, default: str = "") -> str: |
| 21 | child = element.find(_ns(tag)) |
| 22 | if child is None: |
| 23 | child = element.find(tag) # also try without namespace |
| 24 | return (child.text or "").strip() if child is not None else default |
| 25 | |
| 26 | |
| 27 | class MavenParser: |