Clean-up of doctype in prettyXML.
Merge pull request #34 from gnott/doctype-refactor

Clean-up of doctype in prettyXML.