Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDK1.6 - SaxParser and load-external-dtd

843834Jun 22 2006 — edited Jun 22 2006
Hi,

just ran into the following problem. With JDK1.5 these lines didn't make a problem:
SAXParserFactory saxPF = SAXParserFactory.newInstance();

        SAXParser parser = saxPF.newSAXParser();

        //disable validation of DTD/XSD (in case there is no DTD file in the current directory)
        parser.setProperty("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
        parser.parse(this.file, this);
But since I had to install JDK1.6, all I get is this:

org.xml.sax.SAXNotRecognizedException: Property 'http://apache.org/xml/features/nonvalidating/load-external-dtd' is not recognized.

The only reason I switched to 1.6 is that I ran into the OutOfMemory- problem in ZipFile - so I can't go back at the moment...
What am I doing wrong? Did something change in the syntax of the property or is this a bug in the jdk?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2006
Added on Jun 22 2006
1 comment
1,168 views