Refactored DatastoreXmlExternalizer to continuously build a document so
that it can be used for mutable datastore catalog operations.