You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Murray Cumming <Mu...@BetaResearch.de> on 2001/08/17 12:04:06 UTC

Re: getFirstChild coredumps, getChildNodes work

"J. J. Merelo" wrote:
> 
> Hi,
>         In this code:
>  DOM_NodeList list =  grand.getChildNodes(); // works
>  DOM_Node param = grand.getFirstChild();     // coredumps with
> segmentation violation
> 
> How come I get the child nodes as a list without a problem, but not get
> the first child? How can I test if the FirstChild is available or not?

What version of Xerces-C? What platform? Surely getFirstChild() is used
somewhere in the examples. Have you called
XMLPlatformUtils::Initialize()?

-- 
Murray Cumming
www.murrayc.com
murrayc@usa.net

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org