I really hate seeing that there is no one that can at least maybe give you something to go on.
I think since I have worked with XML on at least 3 differnt occations starting as far back as 4 years ago. I think I will make an attempt to learn a bit more to see if I can't get you something. Beside I have been wanting to employ XML more in some of the work I do and what better way to learn it than with a real problem. Of course I can't guarentee anything we will have to see what happens.
I do have a couple questions, I am not even sure how to ask some as I don't have certain other pieces of information. Lets start with this string of XML that is being send from this middleware. Can you give me some idea of what exactly it is outputing or even a sample of it. Working with a real problems is much simpler that hypathetic problems and trying to solve your problem hypathetically will cause more problems.
And if you should be interested in learning a bit, here is the short list of matterial I will be studying.
First I will be reading up on php.net on XML Manipulation
Second, phpbuilder.com has several XML Artiles that will prove handy I am hoping.
Third, I have used hotscripts in the past to track down code snippets and examples as well they have severl turorials on XML
Lastly I will turn to google to do some vary narrowed in searches once I have my head around some ideas that may work.
And if that should all fail (not likely) I will find a good book, no less than 1000 pages, on XML.