[xml] A little confued, please have a look

Date view Thread view Subject view Author view

From: Ming Lu (mlu@argus.ca)
Date: Fri Feb 09 2001 - 16:06:05 EST


For a XML file as below:

<?xml version="1.0"?>
<PLAN xmlns="http://www.argus.ca/autotest/1.0/">
<NODE CommFlag="0"/>
<NODE CommFlag="1"/>
</PLAN>

after parse it with the function pxmlDoc=xmlParseFile(LPCTSTR(strFileName));
I want to the get the content of the first node (node with the CommFlag="0")
so I did it as following;
        xmlNodePtr pode;
        pnode=pxmlDoc->children->children;
but it doesnt work. If I change pnode=pxmlDoc->children->children to
pnode=pxmlDoc->children->children->next; then it works. But from the
document, I think it should be
pnode=pxmlDoc->children->children. Can someone explain it to me. TIA. By the
way, I am using xmllib 2.3 with VC6.0+sp4+NT

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Feb 09 2001 - 16:44:10 EST