Working With XML Schemas

See Also 

Like DTDs, XML schemas specify the valid grammar of an XML document. Schemas have several advantages over DTDs, such as better extensibility, support of namespaces and data types, and an XML code base.

In the IDE, you can create XML schemas and edit them in the Source Editor. You can also use schemas as XML document constraints and validate your XML documents against them.

To create an XML schema:

  1. From the main window, choose File and choose New.
  2. Expand the XML folder and select XML Schema.
  3. Specify a name and location for the file and click Finish.

    A new XML schema node (XML shcema node icon) appears in the Filesystems window.

To edit an XML schema:

To reference an XML schema in an XML document:

     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation= "schema location"

To validate an XML schema:

See Also
Validating an XML Document
DTD Node

Editing an XML Document

Legal Notices