We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
XML Document Validation with an XML Schema
|
| Subject: |
|
Validation with javax.xml.validation package |
| Date: |
|
2006-04-07 14:23:11 |
| From: |
|
dvohra09
|
Response to: Validation with javax.xml.validation package
|
|
Correction.
6. Create a Document object either by parsing an XML document. Create a DOMSource object from the Document object.
Document document;
DOMSource source = new DOMSource(document);
7. Validate the DOMSource object with Validator object.
validator.validate(source);
|