thanks for the hint. I did look into LibXML module but in the activestae installation at office this module is not installed. And apparently I am not allowed to alter this installation. The only module available to me are Simple and Expat.
Comment on Re^2: pattern match screwed up!! (junit xml)
Talk with your manager at work. Explain what you're trying to do and why. Once there is a legitimate business reason, most companies will allow the installation.