Since XML documents are just text documents, I am not sure I understand what you
need help with. Are you interested in
adding features such as tag auto-completion, constraining the XML document to a
DTD or XSchema document, etc.? Can you
go into more detail about what you expect your final product to be?