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) 2013, 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:

Notepad++ XML Tools Plugin - XSD Validation
Notepad++ XML Tools Plugin - XSD Validation

If the XSD file is not specified in the XML document, XSL Tools Plugin will prompt you to specify one.

Last update: 2016.

Table of Contents

 About This Book

 Introduction of XML (eXtensible Markup Language)

 XML File Syntax

 XML File Browsers

 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

 Syntaxes of XSD Statements

 Validating XML Documents Against Specified XML Schemas

 XSL (Extensible Stylesheet Language) Introduction

 XSLT (XSL Transformations) Introduction

 Java Implementation of XSLT

 XPath (XML Path) Language

 XSLT Elements as Programming Statements

 Control and Generate XML Element in the Result

 XML Notepad - XML Editor

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

 XSLT Transformation

 Other XML Tools Functions

 XML 1.1 Changes and Parsing Examples

 Outdated Tutorials

 References

 PDF Printing Version