PDA

View Full Version : XML processing instruction



mattia
26th February 2008, 07:33
Hello, i have to create an XML file, i start with this new processing instruction



QDomNode xmlNode = XMLDomDocumentList.createProcessingInstruction ( "!DOCTYPE" , "RDPClientSettingsConfigFile" );
XMLDomDocumentList.insertBefore ( xmlNode , XMLDomDocumentList.firstChild() );

the results is:


<?!DOCTYPE RDPClientSettingsConfigFile?>

is there a way to remove "?" in the processing instruction?
I'd like to have a results like this:


<!DOCTYPE RDPClientSettingsConfigFile>

wysota
26th February 2008, 11:37
I don't think this would be a processing instruction anymore, would it?