1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
8
<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
9
<title>Validating XML Schema Files</title>
12
<h2>Validating XML Schema Files</h2>
13
<p><small><a href="#seealso">See Also</a></small></p>
14
<p>You can use the XML validation functions that are part of the IDE to make sure your XML schema is well-formed and valid.</p>
15
<p><b>To verify that an XML schema file is well-formed:</b></p>
17
<li>Open the XML schema file.<br>
18
The Schema view of the XML schema editor should open with the selected file. If your XML schema file is not well-formed, the IDE does not show the content of the schema file, instead, a message appears in the center of the view to let you know that there is a problem and that you need to use the Source view to fix the errors.</li>
19
<li>Switch to the Source view of the XML schema editor and click the Check XML button <img src="../images/check_xml.png" alt="Check XML"> in the editor toolbar.<br>
20
The IDE checks the XML and if there are errors, the Output window provides you with more information.</li>
22
<p><b>To verify that an XML schema is valid:</b></p>
24
<li>Open the XML schema file.<br>
25
The Schema view of the XML schema editor opens with the selected file.</li>
26
<li>Click the Validate XML button <img src="../images/validate_xml.png" alt="Validate XML"> in the editor toolbar.<br>
27
The IDE validates the XML schema file and if there are errors, the Output window provides you with more information. </li>
30
<dt><a name="seealso">See Also</a></dt>
31
<dd><a href="../about.html" title="About XML Schema Tools">About XML Schema Tools</a></dd>
34
<small><a href="../credits.html">Legal Notices</a></small>
35
<table cellpadding="150" border="0">
36
<tr><td> </td></tr>
37
<tr><td> </td></tr>
38
<tr><td> </td></tr>