Changed so that $docType is camel-cased.