blob: 9b574924dcd1fae17e97545f677728ea0aceef7d [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, 2009 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, 2009" />
<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="Creating XML schemas" />
<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." />
<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." />
<meta content="XML schema files, creating" name="DC.subject" />
<meta content="XML schema files, creating" 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 content="XHTML" name="DC.Format" />
<meta content="tcxmlsch" 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>Creating XML schemas</title>
</head>
<body id="tcxmlsch"><a name="tcxmlsch"><!-- --></a>
<h1 class="topictitle1">Creating XML schemas</h1>
<div><p>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.</p>
<div class="section">To create an XML schema, complete the following steps:</div>
<ol>
<li class="stepexpand"><span>Create a project to contain the XML schema.</span></li>
<li class="stepexpand"><span>In the workbench, click <span class="menucascade"><span class="uicontrol">File &gt; New &gt; Other</span>
</span> and select <span class="menucascade"><span class="uicontrol">XML &gt; XML Schema</span>
</span>. Click <span class="uicontrol">Next</span>.</span></li>
<li class="stepexpand"><span>Select the project or folder that will contain the XML schema.
In the </span> <span class="uicontrol">File name</span> field, type the name of
the XML schema, for example <kbd class="userinput">MyXMLSchema.xsd</kbd>. The name
of your XML schema must end in <tt class="sysout">.xsd</tt>.</li>
<li class="stepexpand"><span>Click <span class="uicontrol">Finish</span>.</span></li>
</ol>
<div class="section">The XML schema opens in the XML schema editor. </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>
</div>
</body>
</html>