Quote Originally Posted by spirit View Post
The createProcessingInstruction places a processing instruction: <?...?> marker.

Quote Originally Posted by aamer4yu
Am not sure if QXmlStreamWriter::writeDTD wil help you....
This is based on the QXmlStreamWriter class instead of the QDomDocument and outputs a DTD based on the input argument. The QDomDocument automatically creates the "<!DOCTYPE" line for you for referencing a DTD.

Thanks, for trying though!