Originally posted by: wenduan
It compiles fine in VC6,
but when I compiled in visual studio.net,
it always get error as following:
c:\VCP\XMLDOMFromVC\XMLDOMFromVCDlg.h(35): error C2872: 'IXMLDOMDocumentPtr' : ambiguous symbol
c:\VCP\XMLDOMFromVC\XMLDOMFromVCDlg.h(36): error C2872: 'IXMLDOMElementPtr' : ambiguous symbol
c:\VCP\XMLDOMFromVC\XMLDOMFromVCDlg.h(39): error C2872: 'IXMLDOMNodePtr' : ambiguous symbol
c:\VCP\XMLDOMFromVC\XMLDOMFromVCDlg.h(40): error C2872: 'IXMLDOMNodePtr' : ambiguous symbol
......
what should I do?
Originally posted by: Akhilesh Kumar
Hi,
Does anybody know how to read the Element Attribute using
MSXML Parser. I have seen most of the comment in this article but this require you should know the name of each attribute(getNamedItem(...)), IF an element contains more than one attribute Like the example below, is there any way to read(iterate) each attribut without knowing their name, very similar to the way we read Elements.
<Thumbnail type="image/jpeg" height="20" width="20">http://www.xyz.com/artwork/thumb.jpg<;/Thumbnail>
This Article is great for beginers.
Thanks
Akhilesh
Originally posted by: Jens Winslow
Hi,
Thanks for the GREAT article - just what I needed.
However....
Using the xml parser, you will find that the results returned are _bstr_t.
If you need to deal with CString in your code, you can convert like this:
_bstr_t bs = .....
CString cs((LPWSTR)bs);
This was not obvious to me until I did a bit of reading, so I thought I would share it :-)
Reply
Originally posted by: Dodek
Now the Parser is running !!!!
ReplyOriginally posted by: Ponn.Periasamy
A fantastic tutor on DOM for beginners. Good Job
Originally posted by: Poonam
How to create an XML document ?
ReplyOriginally posted by: ali
excelent article to understand dom and vc++ connections
ReplyOriginally posted by: Pedro Lopez
Hello,
Please let me know how to parse the XML file.I need that my document XML is saved as UNICODE because i need to extract chinese characters in it. I tried this, but loading the XML is failing. Please reply ASAP.
Thanks and regards,
Pedro
Originally posted by: Shane
When running in VC 5.0 and I.e 5.5 it gives an error
in Debug\msxml.tlh(785) :
error C2504: 'IXMLDOMCharacterData' : base class undefined
and
Debug/msxml.tli(720) : error C2664: '_com_issue_errorex' : cannot convert parameter 2 from 'struct MSXML::IXMLDOMText *const ' to 'struct IUnknown *'
could you please help.
ReplyOriginally posted by: Vijay
Thanks a lot.
But here can you add the stuff for handling
Regards,
As it helped me, it would really help to lot of people!!
Good work!!!!
NODE_TEXT sorting mechanism,
MSXML::IXMLDOMNodeList,
MSXML::IXMLDOMNamedNodeMap,
that will make this article as even more nice.
- Vijay :o)