You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Ramon F Herrera <ra...@forcewise.com> on 2010/01/26 16:14:40 UTC
Xerces: Who is the parent of the top node?
Please correct me if I am wrong, but it seems to me that the parent
of the XML DOM document's top node is some undefined pointer.
I have tried to navigate to the top, in an elegant fashion, like this:
for (node = current; node; node = node->getParentNode())
but alas, the search crashes. I tried to force the top node parent
to hold the logical value:
node->setParentNode(NULL);
but there is no such statement.
TIA,
-Ramon