Hi,
I specialize in creating custom-made tools for PDF files and I believe I can develop for you a stand-alone tool that will do what you described, but I'd need to know more about how exactly it should work.
Also, it will be good if I could have a sample XML file.
A little bit about me: I'm an Expert on both the Adobe and AcrobatAnswers forums and have a website dedicated to my custom-made tools for PDF files that you're welcome to check out (Google my handle-name to find it).
You're also welcome to check out my work history on this site and see some of the PDF-related projects I've worked on in the past.
Regards, Gilad (try67)