| Sign In/My Account | View Cart |
| Article: |
XML Document Validation with an XML Schema | |
| Subject: | I only get Errors :-/ | |
| Date: | 2005-03-25 10:48:58 | |
| From: | dvohra09 | |
|
Response to: I only get Errors :-/
|
||
| Add the xerces jar files to the System CLASSPATH. | ||
Showing messages 1 through 4 of 4.
parser.setFeature("http://apache.org/xml/features/validation/schema",
true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
true);
it is trying to validate the file from a DTD and gives me the following :
Parsing error: Document root element "catalog", must match DOCTYPE root "null".
Parsing error: Document is invalid: no grammar found.
Parsing completed with errors
Any idea what the problem could be??