There are many XML tools. These two are open-source, cutting-edge tools for creating document types and documents.
XML document authoring with emacs nxml-mode: An
XML-aware editor that continuously validates your
document as you create it.
Relax NG Compact Syntax: A schema language, for describing XML document types.