Differentiate cXML version as 1.1 or 1.2

I have mentioned the version as 9.12 and 10.5.

Further the services “pub.xml:xmlNodeToDocument” and “pub.xml:documentToXMLString” are the in-built services which translates the node to document and document to XML respectively and loosing the highlighted DOCTYPE line and giving the error, further highlighted: