IXMLDOMDocumentPtr pXMLDoc(__uuidof(DOMDocument));
//Add the Process instruction to the top of the document, "Optional"
IXMLDOMProcessingInstructionPtr pProInstrut= pXMLDoc->createProcessingInstruction(
_T("xml"),
_T("version='1.1'") );
ASSERT( pProInstrut != NULL );
ASSERT( pXMLDoc->appendChild( pProInstrut ) != NULL );