users@fi.java.net

Re: VTD speed

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 25 Jan 2006 11:15:04 +0100

Hi Jimmy,

Jimmy Zhang wrote:
> It is good discussion. VTD-XML is a new technology and not
> many people are aware of it and understand its pros and cons,
> so it is *good* to receive criticism, as it helps VTD-XML to
> improve. So I appreciate all the comments.
>
> For the namespace binding part, there is nothing that prevents
> XimpleWare from including the logic to do that ... but we thought
> about how SAX handle well formness errors/exceptions, we
> realized that the correct way to use SAX or Pull, is to scan the
> document at least twice,
>

This is tricky because VTD-XML is an in memory processing model of the
whole document. Comparing VTD-XML with a complete parse with SAX is just
as misleading as comparing VTD-XML with half a parse using StAX.

I think the only way this can be done, as I and Tatu have said, is to
perform some different processing scenarios as developers would intend
to use the different APIs.

Great discussion!

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109