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:
A new XML schema node ()
appears in the Filesystems window.
To edit an XML schema:
The schema is displayed in the Source Editor.
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 |