Hi Michael,

Michael Schmidt <[EMAIL PROTECTED]> writes:

> By the way: is there any way to provide SAX parsers with DTDs not
> for validation purposes but for speedup. In particular, are there
> any SAX parsers that assume valid documents and use the DTD for
> internal optimizations?

I am not aware of any production parsers that do this. There was
some academic research into generating validating XML parsers
from XML Schema specification that showed significant speed-ups.
It's hard to say if the same speed-ups can be realized in a
production parser since the research implementations often make
assumption that do not hold in the real world. Search for "XML
Screamer" for one such project.

On the other hand, we are working on the generating XML Schema
validators that do static schema analysis and generate tailor-
made code for XML validation. We found such validators about
2-10 times faster than general-purpose validating parsers,
as the benchmark results I pointed to show.

hth,
-boris


-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

Reply via email to