Have you taken a look at [untangle](https://github.com/stchris/untangle) to parse XML files? It is not a standard library, but it works well.