Yes, I really like XML::LibXML, it flies through these files some of which are really big. It's the people who produce the XML files in an inconsistent fashion that I want to invite outside!
Comment on Re^2: Search and replace for large number of files
I would guess they are using more than 1 application to generate the XML files, so blame the people who wrote those for being inconsistent with the XML specifications.