Updated XML writer to group Items together.
Lots of code churn, not sure I accomplished much.