You don't need to parse the entire xml to completion if all you are doing is looking for a pattern formed in text. You can absolutely use a regex to get your pattern. I have parsers for amazon product pages and reviews that have been in production since 2017. The html changed a few times (and it cannot be called valid xml at all), but the patterns I capture haven't changed and are still in the same order so the parser still works.