Why it can't work wih "__uuidof(MSXML2::DOMDocument60)"?
-
Hi All, I have a problem with MSXML6 which bother me a lot. First I have a xml file named "Infor.xml" like this: Eric 24 Then the codes to analyze this file is like this: #import //... MSXML2::IXMLDOMDocument2Ptr pNewDocument; pNewDocument.CreateInstance(__uuidof(MSXML2::DOMDocument)); //load the xml file pNewDocument->load(_bstr_t("Infor.xml")); MSXML2::IXMLDOMNodeListPtr pNodeList; //get he sub node "Root/SubNode" pNodeList = pNewDocument->selectNodes(_bstr_t("Root/SubNode")); cout<<"The new Node length is "<Getlength()<Getitem(0); MSXML2::IXMLDOMElementPtr pElement = pSubNode->selectSingleNode(_bstr_t("Name")); if(pElement != NULL) { cout<<"Name is: "<Gettext()<selectSingleNode(_bstr_t("Age")); if(pElement != NULL) { cout<<"Age is: "<Gettext()<