blob: 49cda5734dbababf192b6214539009234310d2e0 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Importing an XML schema</title>
</head>
<body id="timpschm"><a name="timpschm"><!-- --></a>
<h1 class="topictitle1">Importing an XML schema</h1>
<div><p>You can import schemas into the workbench and open them in the
XML schema editor. Opening them in the XML schema editor provides you with
an opportunity to have a structured view of the XML schema file.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective,
but they will also work in many other perspectives. </p>
<p>To import
an XML schema into the workbench, follow these steps:</p>
</div>
<ol><li class="skipspace"><span>Click <span class="menucascade"><span class="uicontrol">File &gt; Import</span></span>.</span></li>
<li class="skipspace"><span>Select the import source.</span> Click <span class="uicontrol">Next</span>.</li>
<li class="skipspace"><span>Fill in the fields in the Import wizard as necessary.</span> When
you are finished, click <span class="uicontrol">Finish</span>.</li>
</ol>
<div class="skipspace"><p>The imported schema now appears in the Navigator view. Double-click
it to open it in the XML schema editor.</p>
</div>
</div>
<div><p><b class="relconceptshd">Related concepts</b><br />
<a href="../topics/cxmlsced.html" title="XML schemas are an XML language for describing and constraining the content of XML files. ">XML schema editor</a><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<a href="../topics/tedtschm.html" title="After you create an XML schema, you can edit its various properties, such as its namespace and prefix.">Editing XML schema properties</a><br />
<a href="../topics/tvdtschm.html" title="Validating an XML schema determines whether the current state of the XML schema file is semantically valid. Any errors will be displayed in the Problems view.">Validating an XML schema</a><br />
<a href="../topics/taddimpt.html" title="As schemas become larger, it is often desirable to divide their content among several schema documents for purposes such as ease of maintenance, reuse, and readability. XML schema defines two constructs to support this: include and import. The include element brings in definitions and declarations from the included schema into the current schema. It requires the included schema to be in the same target namespace as the including schema. The import element behaves in a similar way, with the exception that the imported schema can come from a different namespace.">Adding an import element</a><br />
<a href="../topics/taddincl.html" title="As schemas become larger, it is often desirable to divide their content among several schema documents for purposes such as ease of maintenance, reuse, and readability. XML schema defines two constructs to support this: include and import. The include element brings in definitions and declarations from the included schema into the current schema. It requires the included schema to be in the same target namespace as the including schema. The import element behaves in a similar way, with the exception that the imported schema can come from a different namespace.">Adding an include element</a><br />
</p>
</div><p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>