| Article: |
XML Document Validation with an XML Schema | |
| Subject: | Not able to get it to work :( | |
| Date: | 2005-04-20 00:19:36 | |
| From: | java_kid | |
|
Response to: I only get Errors :-/
|
||
|
Inspite of my following all the given steps, it is trying to validate the file from a DTD and gives me the following :
|
||
Showing messages 1 through 3 of 3.
-
Not able to get it to work :(
2005-04-20 04:44:13 Deepak Vohra | [View]
-
Not able to get it to work :(
2005-04-20 14:09:52 Deepak Vohra | [View]
Set the schema validation and schema validation full-checking features.
[code]parser.setFeature("http://apache.org/xml/features/validation/schema",
true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
true); [/code]
Because the schema validation is not set the parser parses with a DTD which may not be specified.
-
Not able to get it to work :(
2005-04-20 14:10:39 Deepak Vohra | [View]
Set the schema validation and schema validation full-checking features.
parser.setFeature("http://apache.org/xml/features/validation/schema",
true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
true);
Because the schema validation is not set the parser parses with a DTD which may not be specified.



Xerces or JAXP?