If you use the psgml library within emacs, then editing and verifying XML gets easier. Information on using this facility is inluded with psgml.
- Emacs' local variables appear in a few lines of comment at the bottom of each XML file. Please don't delete these!
Adding (setq sgml-set-face t) to your .emacs file will cause all tags and entities to appear in boldface.
Adding (setq sgml-auto-activate-dtd t) to your .emacs file will ensure the DocBook DTD is parsed as soon as the file is loaded.