• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

I have a well formaed XML in a CString.. i want to convert it to IXMLDOMElement VC++/ MFC

I have a well formaed XML in a CString.. i want to convert it to IXMLDOMElement
How do I do that.
0
pras_gupta
Asked:
pras_gupta
1 Solution
 
jkrCommented:
See http://www.codeproject.com/cpp/C___XML_wrapper.asp ("C++ XML the easy way!") which acts as a wrapper around IXMLDDOMDocument - that way you can

CString str = "<Root><SomeObject></SomeObject></Root>";
CXmlDocumentWrapper doc;
doc.LoadXML(str);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now