JavaDeploy
SiteMap
Perl 1
Perl 2
ASP
XML
Attributes Entitites
«Prev
XML Introduction
XML Explanation
Describe Markup Languages
Define XML Metalanguage
Metalanguage Relationships
Lmitations of HTML
XML Intelligence
Describing Intelligent Terms
XML Goals
Approaches using XML
XML Conclusion
Creating XML Documents
XML Document Rules
Well Formed XML
DTD Basics
Beyond Well Formedness
DTD Defined
DTD Creation Process
Element Type Declarations (L5)
Defining DTD - Quiz
Mixed Content Elements
XML Mixed Content
Referencing DTD Declarations (L7)
DTD XML File
File Declarations
DTD Checklist
Simple Complex DTD
XML Document - Quiz
Attributes Entities
Declaring Attributes - DTD
Defining Entities
XML Schemas
XML Parsers
Creating XML Schemas
An XML schema declaration begins with the schema element that specifies a URI for a namespace. The de facto prefix for XML schemas is xsd.
The first statement declares an element named Order. Its element type is OrderType. The second statement declares an element named comment. The comment element type is string. Note that string is prefixed with xsd, the de facto namespace prefix for XML schemas.
The next group of statements defines the OrderType declared previously. Order type consists of several elements, which must be present in the sequence specified by the <xsd:sequence> element. The <xsd:element ref="comment" minOccurs="0" /> indicates that this element is a reference to the comment element.
This group of statements defines a simple type named SKU. Using the <xsd:restriction base="string"> element this simple type is restricted to type string. In addition, this string simple type must follow a pattern as indicated by the
<xsd:pattern value="\d[3]-[A-Z][2] "/> .