1. It's well-formed XML
2. It's in arbitrary order. Generally, this would be by FID.
3. Outputing the 'parent' entries is far too complicated.
4. It only took 5 minutes to write - give me a break.
_________________________
-- roger