File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes javax.xml.stream.isValidating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "javax.xml.stream.isValidating" Watch "javax.xml.stream.isValidating" New topic
Author

javax.xml.stream.isValidating

opper bolt
Greenhorn

Joined: Oct 14, 2010
Posts: 1
Trying out this piece of StAX code from cafeconleche:
XMLInputFactory factory = XMLInputFactory.newInstance();
if (!factory.isPropertySupported("javax.xml.stream.isValidating")) {
System.err.println("This StAX implementation does not support validation.");
return;
}
factory.setProperty("javax.xml.stream.isValidating", Boolean.TRUE);
=> Exception in thread "main" java.lang.IllegalArgumentException: true value of isValidating not supported

That's a bug, no? Or is there an oracle lawyer that would say that an immutably false property is considered supported?
This is java 1.6.0_18.

TNX,

jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.xml.stream.isValidating
 
Similar Threads
c:forEach in reverse order
Please give suggestion or hint
Parsers
Jamon for Websphere Application Server
Anybody using StAX?