Bug 944 - Support for external-parameter-entities feature needed
Summary: Support for external-parameter-entities feature needed
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: SAX (show other bugs)
Version: CVS Extract
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-12 10:07 UTC by Lars Marius Garshol
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Marius Garshol 2001-03-12 10:07:46 UTC
external-parameter-entities I absolutely must have support for, or find a different parser which supports it (unfortunately no other SAX 2.0 parsers in Java support it). The reason is that my application has no need for the DTD,
and will quite often be given XML documents to read that contain <!DOCTYPE 
declarations which point to nowhere sensible. Currently parsing will then fail, and I need to turn DTD reading off to avoid this problem.

If Xerces does not add support for this I will need to hack support into Michael Kay's version of David Brownell's version of Microstar's Ælfred, and I really would like to avoid that.
Comment 1 Arnaud Le Hors 2001-03-19 10:06:37 UTC
I checked on the code and it appears that while we recognize the feature we 
only let one set it to true, or raise a not supported exception. I would think 
that supporting a feature implies we support both states...
This said, we have a "proprietary" feature that allows one to turn off external 
DTD loading. See 'load-external-dtd' in the features doc.
I agree that it be good to implement external-parameter-entities and it should 
be made so that setting it also sets load-external-dtd accordingly.
Given that we have a solution to the specific problem reported I'm changing the 
priority to Medium.
Comment 2 Lars Marius Garshol 2001-10-31 10:25:13 UTC
What you have is a proprietary solution. The whole point of SAX was that it
was supposed to make applications parser-independent. This feature is essential for anyone who wants to make parser-independent applications, since <!DOCTYPE declarations pointing out into nowhere are very common.