At 21.41 07/12/2003 +0000, [EMAIL PROTECTED] wrote:
To enable efficient application usage of Xerces it
would be useful to know when Xerces creates the DOM
tree.  Is it in parallel with the checking for well
formed & valid (would seem to make sense as the DOM
parser appears to use the SAX parser)? Or is the tree
created once it is confirmed that the XML doc is well
formed & valid?

If you choose to use the DOMParser object, Xerces is going to create the DOM while scanning the document ("in parallel", as you say).
If you have concerns about the allocation of the resources, you can choose to use the SAXParser object, that simply invokes callback into your code; this lets you build a custom DOM that can be less resource-hungry


Alberto



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



Reply via email to