Whether or not it is a validating parser isn't really Olav's issue 
though is it?  I thought basically any parser will consider the dtd 
declaration in the doctype as an external entity that it will try to 
load, regardless of whether the parser can or is instructed to validate 
the document against it.  Correct me if I'm wrong.  But maybe he needs 
to write a custom entity resolver or something?

Markus Spath wrote:

> you also could try to switch to a non-validating parser, xerces for 
> example is non-validating by default.
>
> hth,
> markus
>
> [EMAIL PROTECTED] wrote:
>
>> Hi,
>> I am trying to parse an xml file in my application, where the DOCTYPE
>> declaration points to a DTD which does not exist. The SAXReader 
>> therefor throws
>> Exceptions at me, being annoyed by this. How can I prevent this and 
>> let the
>> SAXReader parse the document without checking for the existence of 
>> the DTD file?
>>
>> Thanks,
>> Olav
>>
>>
>
>
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
>
>



_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to