• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • 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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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