XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
XSD Validation and Error List
This section provides a tutorial example on how to perform XSD validation and view error list in XML Notepad 2007.
XML Notepad 2007 can also be used to perform XSD (XML Schema Definition) validations.
1. Open the following XML document in XML Notepad 2007.
<?xml version="1.0"?> <dictionary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="dictionary.xsd"> <!-- dictionary_invalid_xsd.xml - Copyright (c) 2002-2018 HerongYang.com. All Rights Reserved. --> <word acronym="yes"> <name>XML</name> <definition reference="Herong's Notes">eXtensible Markup Language.</definition> <update date="23-Dec-2003"/> </word> <word symbol="true"> <name><</name> <definition>Mathematical symbol representing the "less than" logical operation, like: 1<2.</definition> <definition>Reserved symbol in XML representing the beginning of tags, like: <![CDATA[<p>Hello world!</p>]]> </definition> <update editor="Herong Yang"/> </word> <word symbol="no" acronym="false"> <name>extensible</name> <definition>Capable of being extended.</definition> </word> </dictionary>
2. Look at the "Error List" area near the bottom. You see 4 errors generated from the automatic XSD validation, since the XSD file, dictionary.xsd, is provided in the XML document.
3. Click on the second error. XML Notepad 2007 automatically opens the attribute where this error is generated.
If the XSD file is not provided in the XML document, you can specify it through menu "View" > "Schemas...".
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
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
Downloading and Installing XML Notepad
Creating XML Documents in Tree View
Viewing XML Documents in Source Code
Converting XML in Pretty Print Format
►XSD Validation and Error List
XSLT Transformation and HTML View
XML Tools Plugin for Notepad++
XML Plugin Packages for Atom Editor