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 "Houle, Dennis W" <De...@West.Boeing.com> on 2001/06/18 19:43:47 UTC
Initialize & Terminate each Parser instance?
Team Xerces -
I'm planning on instantiating temporary DOMParser objects, since I'll be
parsing new documents infrequently relative to the amount of element
processing during a "DOM session". Should XMLPlatformUtils::Initialize and
Terminate be called for each Parser instance or only once per DOM session?
For example, DOM session A:
Initialize()
DOMParser()
parse()
getDocument() // document1
~DOMParser()
Terminate()
Initialize()
DOMParser()
parse()
getDocument() // document2
~DOMParser()
Terminate()
// Lots of processing of document1 and document2 elements
OR DOM session B:
Initialize()
DOMParser()
parse()
getDocument() // document1
~DOMParser()
DOMParser()
parse()
getDocument() // document2
~DOMParser()
// Lots of processing of document1 and document2 elements
Terminate()
Thanks for the assistance.
Dennis W. Houle
Tactical Communications Networks
(714) 762-0291
(714) 762-2253 (fax)
dennis.w.houle@boeing.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org