[XML-SIG] Re: Skipped entities under SAX
fredrik at pythonware.com
Fri Apr 23 02:11:15 EDT 2004
Derek Fountain wrote:
> Yes, your example works for me too. However, the same code with my XML sample
> didn't work. It raises an exception:
> xml.sax._exceptions.SAXParseException: ./bookmarks.xml:8:10: undefined entity
> 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.
More information about the XML-SIG