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"
<!-- dictionary_invalid_xsd.xml
 - Copyright (c) 2002-2018 HerongYang.com. All Rights Reserved.
 <word acronym="yes">
  <definition reference="Herong's Notes">eXtensible Markup
  <update date="23-Dec-2003"/>
 <word symbol="true">
  <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>]]>
  <update editor="Herong Yang"/>
 <word symbol="no" acronym="false">
  <definition>Capable of being extended.</definition>

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.

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

 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++

 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 Plugin Packages for Atom Editor

 XML 1.1 Changes and Parsing Examples

 Archived Tutorials


 Full Version in PDF/EPUB