Does it make sense/is it better to use re2 instead? I'm assuming there's no easy way to validate the XML without using regexps in our own code.