Now preserving case of custom doctypes

The doctype is case sensitive in XML files but custom doctypes was mistakenly
made lower case previous to this commit.

Added test case and also updated type in README where doctypes where described.