equal
deleted
inserted
replaced
1 <?xml version="1.0" encoding="UTF-8"?> |
1 <!doctype html> |
2 <!-- |
2 <!-- |
3 Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. |
3 Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
5 |
6 This code is free software; you can redistribute it and/or modify it |
6 This code is free software; you can redistribute it and/or modify it |
7 under the terms of the GNU General Public License version 2 only, as |
7 under the terms of the GNU General Public License version 2 only, as |
8 published by the Free Software Foundation. Oracle designates this |
8 published by the Free Software Foundation. Oracle designates this |
22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
23 or visit www.oracle.com if you need additional information or have any |
23 or visit www.oracle.com if you need additional information or have any |
24 questions. |
24 questions. |
25 --> |
25 --> |
26 |
26 |
27 <!DOCTYPE html |
27 <html> |
28 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|
29 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
30 |
|
31 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
32 |
28 |
33 <head> |
29 <head> |
34 <title>javax.xml.validation</title> |
30 <title>javax.xml.validation</title> |
35 |
31 |
36 <meta name="CVS" |
32 <meta name="CVS" |
84 <li><strong>Easy runtime coupling of an XML instance and schema.</strong> Specifying the location |
80 <li><strong>Easy runtime coupling of an XML instance and schema.</strong> Specifying the location |
85 of a schema to use for validation with JAXP parsers can be confusing. The Validation API makes this |
81 of a schema to use for validation with JAXP parsers can be confusing. The Validation API makes this |
86 process simple (see <a href="#example-1">example</a> below).</li> |
82 process simple (see <a href="#example-1">example</a> below).</li> |
87 </ul> |
83 </ul> |
88 <p> |
84 <p> |
89 <a name="example-1"><strong>Usage example</strong>.</a> The following example demonstrates validating |
85 <a id="example-1"><strong>Usage example</strong>.</a> The following example demonstrates validating |
90 an XML document with the Validation API (for readability, some exception handling is not shown): |
86 an XML document with the Validation API (for readability, some exception handling is not shown): |
91 </p> |
87 </p> |
92 <pre> |
88 <pre> |
93 |
89 |
94 // parse an XML document into a DOM tree |
90 // parse an XML document into a DOM tree |