1 Attachment(s)
Create/Read MSXML2::IXMLDOMDocument poiner ?
Hi All,
I am using DOM to create,load,save to xML file.
I am using CreateElement of MSXML2::IXMLDOMDocument pointer to create nodes.
Lets say i have created 4 nodes, now i want to see what is the element at node 2 to verify.
At this point of time i have not saved the document contents to file.
can i do this ?
if i try to go back and read the contents i am not able to get values at all.
can any one please give a solution ?
A sample application xmlParserFindTest.zip has been attached to see the behaviour.
thanks ahead
rajs
Re: Create/Read MSXML2::IXMLDOMDocument poiner ?
Each IXMLDOMDocument has a documentElement property which gives you the top level element, you can then use the IXMLDOMElement 's childNodes properties to iterate through the child elements.
Re: Create/Read MSXML2::IXMLDOMDocument poiner ?
Hi Zaccheus,
thanks for the reply,
If you see in my sample application i am doing the same thing which you have suggested in function
GetStartAndEndTime(char st[50],char et[50]).
i am taking the root element using
MSXML2::IXMLDOMElement* pRootElement = m_pGlXMLParser->GetRoot();
But even then i am not able to parse after creating it.