A
Alexandra
Hi,
I am trying to parse an XML file using DOM in VC++.
I need an element which is inside other elements.
So I am loading the file.
Calling GetElementsByTagName to get the first level elements.
Iterating through them, get to the one I need and here I am actually in
need of another GetElementsByTagName.
Of course there is no such func in IXMLDOMNode.
Therefore I am creating another IXMLDOMDocument and trying to load into
it that inner xml part of my desired node, by using IXMLDOMNode::xml
property.
I am using loadXML, of course.
And it fails, it returns -1.
While when I substitute that pNode->xml for the same xml piece I copy
and paste from my file it works fine.
I have displayed the pNode->xml and it looks fine. Well structured and
etc.
Please help!
Any ideas ? Leads ?
Thank you!
I am trying to parse an XML file using DOM in VC++.
I need an element which is inside other elements.
So I am loading the file.
Calling GetElementsByTagName to get the first level elements.
Iterating through them, get to the one I need and here I am actually in
need of another GetElementsByTagName.
Of course there is no such func in IXMLDOMNode.
Therefore I am creating another IXMLDOMDocument and trying to load into
it that inner xml part of my desired node, by using IXMLDOMNode::xml
property.
I am using loadXML, of course.
And it fails, it returns -1.
While when I substitute that pNode->xml for the same xml piece I copy
and paste from my file it works fine.
I have displayed the pNode->xml and it looks fine. Well structured and
etc.
Please help!
Any ideas ? Leads ?
Thank you!