They use a simple XML Schema definition to validate personnel data stored in an XML file.)Note: There are multiple schema-definition languages, including RELAX NG, Schematron, and the W3C "XML Schema" standard.
The following code illustrates the validation process: import *; import parsers.*; import sax.*; import sax.helpers.*; import org.w3*; import transform.stream.*; import *; import *; import validation.*; /** Validates XML against W3C XML Schema.
Copyright © 1993, 2016, Oracle and/or its affiliates.
Now that you understand more about namespaces, you're ready to take a deeper look at the process of XML Schema validation.
Although a full treatment of XML Schema is beyond the scope of this tutorial, this section will show you the steps you need to take to validate an XML document using an XML Schema definition.
(You can also examine the sample programs that are part of the JAXP download.