[Major] major rewrite, now implemented SAX and DOM methods.

SAX works, DOM does not yet work. Simpler implementation now by not
having to modify domain objects so they can be persisted.