Are you using the XML file simply as a pipeline or buffer between the two processes?
Pleae expand on your scenario a bit, so we can be sure it is the corrct approach for your situation.
"Premature optimization is the root of all evil." - Knuth
If I provoked thought, please click the green arrow
If I provoked Aha! please click Propose as Answer