Hi Renin, The parser doesn't traverse a DOM tree. It parses an XML stream and builds a DOM from that stream. Most of the information that maintains the state of the parse is not kept on the stack, and the parser is not implemented using recursive descent -- it's a state machine. Dave "Renin Jegadeesan" <renin.jegadeesan@ To: <[EMAIL PROTECTED]> smarts.com> cc: (bcc: David N Bertoni/Cambridge/IBM) Subject: RE: XercesDOMParser::parse() - Is this Recursive? 03/21/2003 07:20 AM Please respond to xerces-c-dev 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XercesDOMParser::parse() - Is this Recursive?
David N Bertoni/Cambridge/IBM Fri, 21 Mar 2003 09:26:12 -0800
- XercesDOMParser::parse() - Is this Recursive... Renin Jegadeesan
- Re: XercesDOMParser::parse() - Is this ... David N Bertoni/Cambridge/IBM
- RE: XercesDOMParser::parse() - Is t... Renin Jegadeesan
- RE: XercesDOMParser::parse() - ... David N Bertoni/Cambridge/IBM
- RE: XercesDOMParser::parse(... Renin Jegadeesan
- RE: XercesDOMParser::parse() - Is this ... Neil Graham
- RE: XercesDOMParser::parse() - Is t... Renin Jegadeesan
- RE: XercesDOMParser::parse() - Is this ... Neil Graham
- RE: XercesDOMParser::parse() - Is t... Renin Jegadeesan