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

 About This Book

 Introduction of XML (eXtensible Markup Language)

 XML File Syntax

 XML File Browsers

 XML-JSON Document Conversion

 DOM (Document Object Model) Programming Interface

 SAX (Simple API for XML) Programming Interface

 DTD (Document Type Definition) Introduction

 Syntaxes of DTD Statements

 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

 Syntaxes of XSD Statements

 Validating XML Documents Against Specified XML Schemas

 XSL (Extensible Stylesheet Language) Introduction

 Java Implementation of XSLT

 XSLT (XSL Transformations) Introduction

 XPath (XML Path) Language

 XSLT Elements as Programming Statements

 Control and Generate XML Element in the Result

 PHP Extensions for XML Manipulation

 Processing XML with Python Scripts

 XML Notepad - XML Editor

 XML Tools Plugin for Notepad++

 XML Plugin Packages for Atom Editor

 XML 1.1 Changes and Parsing Examples

 Archived Tutorials


 Full Version in PDF/EPUB