Xerces2-J http://apache.org/xml/features/validation/warn-on-undeclared-elemdef?

G

Gerben

I try to use
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef":

---
System.setProperty("javax.xml.parsers.SAXParserFactory",
"org.apache.xerces.jaxp.SAXParserFactoryImpl");

SAXParserFactory parserFactory = SAXParserFactory.newInstance();
SAXParser parser = parserFactory.newSAXParser();
XMLReader reader = parser.getXMLReader();


reader.getFeature("http://apache.org/xml/features/validation/warn-on-undecla
red-elemdef");
---

but an exception is thrown:

org.xml.sax.SAXNotRecognizedException:
http://apache.org/xml/features/validation/warn-on-undeclared-elemdef

other features work. Any ideas?
 
A

Alexey Dmitriev

Gerben said:
As far as i know, i am using 2.5.0. How can i be sure?

As they say in Xerces2-J general FAQs
to find out the release version of Xerces, execute the following:
java org.apache.xerces.impl.Version
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top