Moved some XML formatting code to helper class.
Moved some XML formatting code to helper class.

This may not seem like a fantastic move right now, but opens up for more
refactorings.

GreanTech/AtomEventStore,GreanTech/AtomEventStore