[XML-SIG] Re: State of the world

Lars Marius Garshol larsga@step.de
Fri, 01 May 1998 12:34:24 +0200


Andrew Kuchling wrote:
> 
> What would xmlproc buy that the other don't--validation, probably?

Yes. Validation, access to the DTD and the differences in interpretation
of the markup that spring from this. The non-validating parser (the
validating one is built on top of this) is also faster than xmllib (at 
least in their current versions, neither have been tweaked for speed
yet).
 
> xmldtd.py seems fairly independent of xmlproc (at least from
> my superficial look at the code), so it would probably be a good
> idea. 

It is rather independent. Although the DTD-parser is in xmlproc.py and
has some strings attached there, it can probably be extracted fairly
easily.

I'll see what I can do.

> We could provide parser subclasses that assemble an object
> representing the DTD as they parse

xmldtd.py has this already, but like you say we should have the same
for xmltok as well. I plan to restructure xmldtd.py and xmlval.py a bit,
so maybe I can generalize them to the point where they can sit on top
of xmltok as well.
 
--Lars M.