On Monday, 11/01/2004 at 05:05 EST, "Tahura Chaudhry" <[EMAIL PROTECTED]>
wrote:
> Is ApplyXPath more efficient than ApplyXPathDOM?

Yes, if you're starting from XML character data.

Basically, ApplyXPath will use our own internal data model, DTM, which is
more efficient than the DOM. ApplyXPathDOM will wrap a DTM API adapter
around the DOM, which imposes significant overhead but is less expensive
than serializing the DOM out and parsing it back in would be.

If you already have a DOM in memory, use ApplyXPathDOM. Otherwise you
almost certainly want ApplyXPath.

Reply via email to