blob: 9aec93283d93caa6a6a0d3e207f7088cd3af5605 [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" />
5<meta name="copyright" content="Copyright (c) 2000, 2006 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, 2006" />
7<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="Creating XML schemas" />
12<meta name="abstract" content="You can create an XML schema and then edit it using the XML schema editor. Using the XML schema editor, you can specify element names that indicates which elements are allowed in an XML file, and in which combinations." />
13<meta name="description" content="You can create an XML schema and then edit it using the XML schema editor. Using the XML schema editor, you can specify element names that indicates which elements are allowed in an XML file, and in which combinations." />
14<meta content="XML schema files, creating" name="DC.subject" />
15<meta content="XML schema files, creating" 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" />
kprice159fa582006-05-08 21:30:45 +000019<meta content="XHTML" name="DC.Format" />
20<meta content="tcxmlsch" name="DC.Identifier" />
21<meta content="en-us" name="DC.Language" />
22<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
syeshinf3d0d4b2005-07-27 18:33:03 +000023<title>Creating XML schemas</title>
syeshin8f077832005-09-06 04:22:45 +000024</head>
syeshinf3d0d4b2005-07-27 18:33:03 +000025<body id="tcxmlsch"><a name="tcxmlsch"><!-- --></a>
26
kprice159fa582006-05-08 21:30:45 +000027
syeshinf3d0d4b2005-07-27 18:33:03 +000028<h1 class="topictitle1">Creating XML schemas</h1>
kprice159fa582006-05-08 21:30:45 +000029
30
31
32
syeshinf3d0d4b2005-07-27 18:33:03 +000033<div><p>You can create an XML schema and then edit it using the XML schema
syeshind0bdb8e2005-10-27 17:44:14 +000034editor. Using the XML schema editor, you can specify element names that indicates
kprice159fa582006-05-08 21:30:45 +000035which elements are allowed in an XML file, and in which combinations.</p>
36
37<div class="section">To create an XML schema, follow these steps:</div>
38
39<ol>
40<li class="stepexpand"><span>Create a project to contain the XML schema.</span></li>
41
42<li class="stepexpand"><span>In the workbench, select <span class="menucascade"><span class="uicontrol">File &gt; New &gt;
43Other &gt; XML &gt; XML Schema</span></span> and click <span class="uicontrol">Next</span>.</span>
44</li>
45
46<li class="stepexpand"><span>Select the project or folder that will contain the XML schema.
47In the </span> <span class="uicontrol">File name</span> field, type the name of
syeshinf3d0d4b2005-07-27 18:33:03 +000048the XML schema, for example <kbd class="userinput">MyXMLSchema.xsd</kbd>. The name
kprice159fa582006-05-08 21:30:45 +000049of your XML schema must end in <tt class="sysout">.xsd</tt>.</li>
50
51<li class="stepexpand"><span>Click <span class="uicontrol">Finish</span>.</span></li>
52
syeshinf3d0d4b2005-07-27 18:33:03 +000053</ol>
kprice159fa582006-05-08 21:30:45 +000054
55<div class="section">The XML schema opens in the XML schema editor. </div>
56
syeshinf3d0d4b2005-07-27 18:33:03 +000057</div>
58
kprice43d0c0f2006-05-18 15:56:09 +000059<div><div class="relconcepts"><strong>Related concepts</strong><br />
60<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>
61</div>
62<div class="reltasks"><strong>Related tasks</strong><br />
63<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>
64<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>
65</div>
66</div>
kprice159fa582006-05-08 21:30:45 +000067
syeshinf3d0d4b2005-07-27 18:33:03 +000068</body>
69</html>