Improved XML and DTD parsers (error detection) and tokenizers.
Added more not well-formed XML tests.