Still worth repeating …..
XML mantra:
1. Get data into XML as quickly as possible
2. Keep it in XML until the last possible minute
3. Bring all your XML tools to bear on solving the data processing problem
-- Sean McGrath
See slide 12 of "Performing impossible feats of XML processing with pipelining"