I am sorry i wasn't clear. I understood from the code that it's not
re-entrant.

what i meant was, does the XercesDOMParser::parse() traverse the DOM
Tree in a recursive manner?

since my program is multi-threaded, i am worried if this traversing
is done in a recursive manner, the depth of the DOM tree would be
constrained by the stack size for this thread, and if the DOM Tree
 is deep enough, then my program would crash.

Thanks again, for any help.
renin.


> -----Original Message-----
> From: David N Bertoni/Cambridge/IBM [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 20, 2003 7:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XercesDOMParser::parse() - Is this Recursive?
>
>
>
>
>
>
> HI Renin,
>
> If you mean "re-entrant" the answer is no -- a single instance of a parser
> can only parse one document at a time.  See:
>
>    http://xml.apache.org/xerces-c/faq-parse.html#faq-7
>
> Dave
>
>
>
>
>
>                       "Renin Jegadeesan"
>
>                       <renin.jegadeesan@         To:
> <[EMAIL PROTECTED]>
>                       smarts.com>                cc:      (bcc:
> David N Bertoni/Cambridge/IBM)
>                                                  Subject:
> XercesDOMParser::parse() - Is this Recursive?
>                       03/20/2003 03:29
>
>                       PM
>
>                       Please respond to
>
>                       xerces-c-dev
>
>
>
>
>
>
>
> Hi,
> I am a newbie at using Xerces C++. I have written a multi-threaded program
> that uses the XercesDOMParser to parse my xml document.
>
> I am wondering if the XercesDOMParser::parse() is recursive? I looked
> at the source code, and it appears to be non-recursive. But the source
> code is really complicated, and i would appreciate it, if one of the
> experts on this mailing list can answer this question for me.
>
> Thank you in advance,
> - Renin
> (914) 798-8561
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to