blob: dc503744ad44de67e76a451f542f180c85d1bbec [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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Importing XML schemas" />
<meta name="abstract" content="If you want to work with XML schema files that you created outside of the product, you can import them into the workbench and open them in the XML schema editor. The XML schema editor provides you with a structured view of the XML schema." />
<meta name="description" content="If you want to work with XML schema files that you created outside of the product, you can import them into the workbench and open them in the XML schema editor. The XML schema editor provides you with a structured view of the XML schema." />
<meta content="XML schema files, importing" name="DC.subject" />
<meta content="XML schema files, importing" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/tedtschm.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/cxmlsced.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tvdtschm.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/taddimpt.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/taddincl.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="timpschm" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Importing XML schemas</title>
</head>
<body id="timpschm"><a name="timpschm"><!-- --></a>
<h1 class="topictitle1">Importing XML schemas</h1>
<div><p>If you want to work with XML schema files that you created outside
of the product, you can import them into the workbench and open them in the
XML schema editor. The XML schema editor provides you with a structured view
of the XML schema.</p>
<div class="section"><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, complete the following steps:</p>
</div>
<ol>
<li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">File &gt; Import</span></span>.</span>
</li>
<li class="stepexpand"><span>Select <span class="menucascade"><span class="uicontrol">General</span> &gt; <span class="uicontrol">File
System</span></span> and click <span class="uicontrol">Next</span>.</span>
</li>
<li class="stepexpand"><span>Click <span class="uicontrol">Browse</span> on the next page of the wizard
to select the directories from which you would like to add the XML schema.</span>
</li>
<li class="stepexpand"><span>In the import selection panes, use the following methods to select
exactly the resources you want to add: </span> <ul>
<li>Expand the hierarchies in the left pane and select or clear the checkboxes
that represent the folders in the selected directory. Then in the right pane,
select or clear check boxes for individual files.</li>
<li>Click <span class="uicontrol">Filter Types</span> to filter the current selection
for files of a specific type.</li>
<li>Click <span class="uicontrol">Select All</span> to select all resources in the
directory, then go through and deselect the ones that you do not want to add.</li>
<li>Click <span class="uicontrol">Deselect All</span> to deselect all resources in
the directory, then go through and choose individual resources to add.</li>
</ul>
</li>
<li class="stepexpand"><span>In the <span class="uicontrol">Into folder</span> field, specify the Workbench
project or folder that will be the import destination.</span></li>
<li class="stepexpand"><span>When you have finished specifying your import options, click <span class="uicontrol">Finish.</span></span>
</li>
</ol>
<div class="section"><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><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cxmlsced.html" title="This product provides an XML schema editor for creating, viewing, and validating XML schemas. XML schemas are a formal specification of element names that indicates which elements are allowed in an XML file, and in which combinations.">XML schema editor</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><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></div>
<div><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 XML schemas</a></div>
<div><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. You can use an import element to bring in definitions and declarations from an imported schema into the current schema.">Adding import elements</a></div>
<div><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. You can use the include element to bring in definitions and declarations from the included schema into the current schema. The included schema must be in the same target namespace as the including schema.">Adding include elements</a></div>
</div>
</div>
</body>
</html>