XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
Validating an XML File against a XSD Schema
This section describes different ways to validate XML files against XSD schemas: using standalone XML validation tools, using on-line XML validators, and writing your own XML validation programs.
So far we learned how to use XSD statements to define a schema for an XML file. We also learned how to specify a schema defined by XSD statements to an XML file.
Now let's see how we can validate an XML file against the specified schema. In general, Web browsers like IE and Firefox can be used to browse XML files. But they can not be used to validate XML files. So we have to look for other ways to perform XML XSD validation:
1. Using XML XSD validation tools:
2. Using XML XSD on-line validators:
3. Write your own XML validators with XML XSD validation API:
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