Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying Special symbols on the dialog window. Pin
aravind.sn16-Jun-09 0:01
aravind.sn16-Jun-09 0:01 
GeneralRe: Displaying Special symbols on the dialog window. Pin
Stuart Dootson16-Jun-09 0:06
professionalStuart Dootson16-Jun-09 0:06 
GeneralRe: Displaying Special symbols on the dialog window. Pin
aravind.sn16-Jun-09 2:32
aravind.sn16-Jun-09 2:32 
QuestionMSXML::IXMLDOMNodeListPtr Pin
p_196015-Jun-09 21:32
p_196015-Jun-09 21:32 
AnswerRe: MSXML::IXMLDOMNodeListPtr Pin
CPallini15-Jun-09 21:50
mveCPallini15-Jun-09 21:50 
AnswerRe: MSXML::IXMLDOMNodeListPtr Pin
Stuart Dootson15-Jun-09 22:38
professionalStuart Dootson15-Jun-09 22:38 
QuestionXmlnode value.. Pin
siva45515-Jun-09 21:19
siva45515-Jun-09 21:19 
AnswerRe: Xmlnode value.. Pin
CPallini15-Jun-09 22:04
mveCPallini15-Jun-09 22:04 
I suppose a slight modification of this MSDN code sample [^] will do the job, i.e.:

#include <stdio.h>
#import <msxml4.dll>

int main(int argc, char* argv[])
{
  MSXML2::IXMLDOMDocumentPtr pXMLDom;
  HRESULT hr;

  CoInitialize(NULL);

  hr = pXMLDom.CreateInstance(__uuidof(MSXML2::DOMDocument40));
  if (FAILED(hr)) 
  {
    printf("Failed to instantiate DOMDocument40 class\n");
    return -1;
  }

  pXMLDom->async = VARIANT_FALSE;
  if ( pXMLDom->load("test.xml") != VARIANT_TRUE)
  {
    printf("Failed load xml data from file.\n%s\n",
      (LPCSTR)pXMLDom->parseError->Getreason());
    return -1;
  }

  // Query a single node.
  MSXML2::IXMLDOMNodePtr pNode = pXMLDom->selectSingleNode("//test1");
  if (pNode == NULL)
  {
    printf("Invalid node fetched.\n%s\n",
      (LPCSTR)pXMLDom->parseError->Getreason());
  }
  else
  {
    printf("Result from selectSingleNode:\nNode, <%s>:\n\t%s\n\n",
      (LPCSTR)pNode->nodeName, (LPCSTR)pNode->text);
  }
  CoUninitialize();
}


Where test.xml is the file containing the XML text you posted.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

Questionhow to retive body of Lotus Notes mail. Pin
santhosh-padamatinti15-Jun-09 21:18
santhosh-padamatinti15-Jun-09 21:18 
AnswerRe: how to retive body of Lotus Notes mail. Pin
Pardhu_M16-Jun-09 1:48
Pardhu_M16-Jun-09 1:48 
GeneralRe: how to retive body of Lotus Notes mail. Pin
raghava56016-Jun-09 22:09
raghava56016-Jun-09 22:09 
Questionrequired equivalent VC++ MFC functions ordinal number Pin
Member 372149115-Jun-09 20:01
Member 372149115-Jun-09 20:01 
AnswerRe: required equivalent VC++ MFC functions ordinal number Pin
«_Superman_»15-Jun-09 20:14
professional«_Superman_»15-Jun-09 20:14 
QuestionReg. Error C2440 in visual studio 2008.... Pin
Rakesh515-Jun-09 19:44
Rakesh515-Jun-09 19:44 
AnswerRe: Reg. Error C2440 in visual studio 2008.... Pin
«_Superman_»15-Jun-09 19:51
professional«_Superman_»15-Jun-09 19:51 
AnswerRe: Reg. Error C2440 in visual studio 2008.... Pin
Stuart Dootson15-Jun-09 22:05
professionalStuart Dootson15-Jun-09 22:05 
QuestionPreTranslateMessage in ActiveX Control Class Pin
Nishad S15-Jun-09 19:43
Nishad S15-Jun-09 19:43 
QuestionFunction Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 18:46
Rajdeep.NET15-Jun-09 18:46 
AnswerRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 18:55
professional«_Superman_»15-Jun-09 18:55 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 19:26
Rajdeep.NET15-Jun-09 19:26 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 19:29
professional«_Superman_»15-Jun-09 19:29 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 20:42
Rajdeep.NET15-Jun-09 20:42 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 22:31
professional«_Superman_»15-Jun-09 22:31 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 23:56
Rajdeep.NET15-Jun-09 23:56 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»16-Jun-09 0:00
professional«_Superman_»16-Jun-09 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.