XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
What Is XSD (XML Schema Definition)
This section provides a quick introduction of XSD (XML Schema Definition) - a language that can be used to define a schema for XML documents.
What Is XSD (XML Schema Definition): XSD is a language that can be used to define a schema for XML documents. XSD itself is an XML based language. All XSD statements are written in XML format.
If an XML document is said to be valid against a XSD schema, all elements, attributes and entities in the XML document must meet their declared formats described in the XSD schema.
Main features of XSD:
Here is an example of XSD schema:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="p" type="xsd:string"/> </xsd:schema>
This example shows:
Table of Contents
Introduction of XML (eXtensible Markup Language)
DOM (Document Object Model) Programming Interface
SAX (Simple API for XML) Programming Interface
DTD (Document Type Definition) Introduction
Validating an XML Document against the Specified DTD Document Type
►XSD (XML Schema Definition) Introduction
►What Is XSD (XML Schema Definition)
XML Files with Embedded XSD Statements
XML Files with Linked External XSD Files
Validating an XML File against a XSD Schema
Validating XML Documents Against Specified XML Schemas
XSL (Extensible Stylesheet Language) Introduction
XSLT (XSL Transformations) Introduction
XSLT Elements as Programming Statements
Control and Generate XML Element in the Result
PHP Extensions for XML Manipulation
Processing XML with Python Scripts
XML Tools Plugin for Notepad++
XML Plugin Packages for Atom Editor