When input has invalid xml like ```xml how are you ? <br> <hello /> ``` The unclosed `<br>` will "swallow" all remaining tags Another way to solve this might be to recurse into tags - at least if they are not an action tag.