[XML-SIG] Re: Skipped entities under SAX

Derek Fountain derekfountain at yahoo.co.uk
Fri Apr 23 02:59:09 EDT 2004


> > It turns out that the problem is my lack of a DTD declaration. If I add
> > an external DTD declaration:
> >
> > <!DOCTYPE BOOKMARKS SYSTEM 'x.dtd'>
> >
> > then it works.
> >
> > Why might that be?
>
> the parser knows that if the document doesn't have an external DTD, there's
> no way that entity could be defined.

Correct, but is there a reason it chooses to throw an error, rather than hand 
it over to the handler's skipped entity routine? If it chose the latter, it 
would obviously skip all entities and hand them all over, but why is that 
route not preferable to throwing an error and stopping the script?

-- 
> eatapple
core dump




More information about the XML-SIG mailing list