blob: dc503744ad44de67e76a451f542f180c85d1bbec [file] [log] [blame]
kprice159fa582006-05-08 21:30:45 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
syeshinf3d0d4b2005-07-27 18:33:03 +00003<head>
kprice159fa582006-05-08 21:30:45 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kpricede20a692008-04-24 00:27:47 +00005<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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kprice159fa582006-05-08 21:30:45 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<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))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Importing XML schemas" />
12<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." />
13<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." />
14<meta content="XML schema files, importing" name="DC.subject" />
15<meta content="XML schema files, importing" name="keywords" />
kprice43d0c0f2006-05-18 15:56:09 +000016<meta scheme="URI" name="DC.Relation" content="../topics/tedtschm.html" />
17<meta scheme="URI" name="DC.Relation" content="../topics/cxmlsced.html" />
18<meta scheme="URI" name="DC.Relation" content="../topics/tvdtschm.html" />
19<meta scheme="URI" name="DC.Relation" content="../topics/taddimpt.html" />
20<meta scheme="URI" name="DC.Relation" content="../topics/taddincl.html" />
kprice159fa582006-05-08 21:30:45 +000021<meta content="XHTML" name="DC.Format" />
22<meta content="timpschm" name="DC.Identifier" />
23<meta content="en-us" name="DC.Language" />
24<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
syeshind0bdb8e2005-10-27 17:44:14 +000025<title>Importing XML schemas</title>
syeshin8f077832005-09-06 04:22:45 +000026</head>
syeshinf3d0d4b2005-07-27 18:33:03 +000027<body id="timpschm"><a name="timpschm"><!-- --></a>
28
kprice159fa582006-05-08 21:30:45 +000029
syeshind0bdb8e2005-10-27 17:44:14 +000030<h1 class="topictitle1">Importing XML schemas</h1>
kprice159fa582006-05-08 21:30:45 +000031
32
33
34
35<div><p>If you want to work with XML schema files that you created outside
36of the product, you can import them into the workbench and open them in the
37XML schema editor. The XML schema editor provides you with a structured view
38of the XML schema.</p>
39
40<div class="section"><p>The following instructions were written for the Resource perspective,
41but they will also work in many other perspectives.</p>
42<p>To import an XML
kpricede20a692008-04-24 00:27:47 +000043schema into the workbench, complete the following steps:</p>
syeshinf3d0d4b2005-07-27 18:33:03 +000044</div>
kprice159fa582006-05-08 21:30:45 +000045
46<ol>
47<li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">File &gt; Import</span></span>.</span>
48</li>
49
kpricede20a692008-04-24 00:27:47 +000050<li class="stepexpand"><span>Select <span class="menucascade"><span class="uicontrol">General</span> &gt; <span class="uicontrol">File
51System</span></span> and click <span class="uicontrol">Next</span>.</span>
kprice159fa582006-05-08 21:30:45 +000052</li>
53
kpricede20a692008-04-24 00:27:47 +000054<li class="stepexpand"><span>Click <span class="uicontrol">Browse</span> on the next page of the wizard
55to select the directories from which you would like to add the XML schema.</span>
56</li>
57
58<li class="stepexpand"><span>In the import selection panes, use the following methods to select
59exactly the resources you want to add: </span> <ul>
60<li>Expand the hierarchies in the left pane and select or clear the checkboxes
61that represent the folders in the selected directory. Then in the right pane,
62select or clear check boxes for individual files.</li>
63
64<li>Click <span class="uicontrol">Filter Types</span> to filter the current selection
65for files of a specific type.</li>
66
67<li>Click <span class="uicontrol">Select All</span> to select all resources in the
68directory, then go through and deselect the ones that you do not want to add.</li>
69
70<li>Click <span class="uicontrol">Deselect All</span> to deselect all resources in
71the directory, then go through and choose individual resources to add.</li>
72
73</ul>
74</li>
75
76<li class="stepexpand"><span>In the <span class="uicontrol">Into folder</span> field, specify the Workbench
77project or folder that will be the import destination.</span></li>
78
79<li class="stepexpand"><span>When you have finished specifying your import options, click <span class="uicontrol">Finish.</span></span>
80</li>
kprice159fa582006-05-08 21:30:45 +000081
syeshinf3d0d4b2005-07-27 18:33:03 +000082</ol>
kprice159fa582006-05-08 21:30:45 +000083
84<div class="section"><p>The imported schema now appears in the Navigator view. Double-click
syeshinf3d0d4b2005-07-27 18:33:03 +000085it to open it in the XML schema editor.</p>
86</div>
kprice159fa582006-05-08 21:30:45 +000087
88</div>
89
kprice43d0c0f2006-05-18 15:56:09 +000090<div><div class="relconcepts"><strong>Related concepts</strong><br />
91<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>
92</div>
93<div class="reltasks"><strong>Related tasks</strong><br />
94<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>
95<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>
96<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>
97<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>
98</div>
99</div>
syeshinf3d0d4b2005-07-27 18:33:03 +0000100
syeshinf3d0d4b2005-07-27 18:33:03 +0000101</body>
102</html>