|
From: Tatu S. <cow...@ya...> - 2007-07-02 16:45:34
|
--- Jimmy Zhang <cra...@co...> wrote:
> It is not much different from DOM, albeit VTD-XML's
> more efficient...
> when you send DOM downstream, still need to
> serialize...
> for VTD-XML, you just call XMLModifier's output()...
Not necessarily, more often it's all within a single
process, the tree model just gets passed. If so, no
additional serialization or parsing is needed.
I think it is fair to say that different models are
more optimal for different use cases, and that heavy
modifications are amongst hardest use cases for
extractive parsers to implement efficiently (as
opposed to read-only that is the most optimal).
Regarding original problem -- it is of course possible
to move from basic DOM to other Java tree
alternatives. Also, most xml processing overhead might
not come directly from DOM model itself: it is good to
profile to see if it might have to do with other
processing (xslt if it's being used, xpath, naive
business logic that uses too much traversal).
-+ Tatu +-
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222
|