OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] XSLT with DOM or SAX ?

[ Lists Home | Date Index | Thread Index ]

Zhimao Guo wrote:

>Surely DOM is better.

    My experience with XSLT is limited but I try to imagine one scenario 
where SAX would be better:

    If the xml document is large and if you can craft the transformation 
so that you avoid the document being passed many times then SAX could 
actually improve performance.

    Anyway, like in all problems involving optimizations you must 
*first* have the problem and only after you are sure that you've found 
the bottleneck proceed with the modifications.



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS