XML Tutorials - Herong's Tutorial Examples - v5.23, by Herong Yang
XSD Validation and Error List
This section provides a tutorial example on how to perform XSD validation and view error list using XML Tools Plugin in Notepad++.
XML Tools Plugin can also be used to perform XSD (XML Schema Definition) validations.
1. Open the following XML document, dictionary_invalid_xsd.xml, in Notepad++:
<?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. Click "Plugins" > "XML Tools" > "Validate now". You see 5 errors listed in an information window:
If the XSD file is not specified in the XML document, XSL Tools Plugin will prompt you to specify one.
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
►XML Tools Plugin for Notepad++
What Is XML Tools Plugin for Notepad++
Downloading and Installing Notepad++ with XML Tools
Converting XML in Pretty Print Format
►XSD Validation and Error List
XML Plugin Packages for Atom Editor