How to validate a schema using XML Parser for Java 3.2.1?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   RaviKumar_Gopalankutty
Posted On:   Sunday, October 7, 2001 11:03 PM

I have tried using the following parameters to turn on the XML Schema validation when using a org.apache.xerces.parsers.DOMParser

			
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature( "http://apache.org/xml/features/validation/schema", true);
parser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking", true);

The issue is that the parser is not sensing that a mandatory element is missing in the XML Document. The error is immediately shown when I validate the same XML document in a 3rd party tool like XML Spy.

Re: How to validate a schema using XML Parser for Java 3.2.1?

Posted By:   Bozidar_Dangubic  
Posted On:   Tuesday, October 9, 2001 06:15 AM

does it work with something other than Xerces. It could be a problem with Xerces. the code looks clean to me.
About | Sitemap | Contact