Generating XML Schema Diagrams

This section describes a tutorial example on how to generate graphical diagrams representing relations of validation rules defined in XML Schema (XSD) documents using XMLPad.

Another nice feature of XMLPad is generating graphical diagrams representing relations of validation rules defined in XML Schema (XSD) documents. The following tutorial example shows you how to generate an XML schema diagram from our first XSD document, first_html.xsd.

1. Run XMLPad and click menu File > Open. Select c:\herong\first_html.xsd in the "Open" dialog box. XMLPad displays the XSD document in the edit window:

<?xml version = "1.0" encoding = "utf-8"?>
<xs:schema xmlns:xs=""
  elementFormDefault="qualified" attributeFormDefault="unqualified">
 <xs:element name="html" type="htmlType"/>
 <xs:complexType name="htmlType">
   <xs:element name="body" type="xs:string"/>

2. Click the "Diagram" button at the bottom of the editor window. XMLPad will show a simple diagram with two sections:

3. Click the "+" sign next to each definition, XMLPad will show you how top level definitions are related to lower level definitions.
XMLPad - Generate XML Schema Diagram

Last update: 2013.

Table of Contents

 About This Book

 Introduction to XML Schema

XML Editor and Schema Processor - XMLPad

 Installing WMHelp XMLPad Pro

 Creating and Editing XML Documents

 Creating and Editing XML Schema Documents

 Assigning XML Schema to XML Documents

 Validating XML Documents with Assigned XSD

 Validating Non-Conforming XML Documents

 XMLPad Crash When Validating Non-Conforming XML Documents

Generating XML Schema Diagrams

 Generating XML Schema Documentations

 Java API for XML Processing - JAXP

 JAXP - XML Schema (XSD) Validation

 Xerces2 Java Parser - Java API of XML Parsers

 Using Xerces2 Java API

 XML Schema Language - Basics

 Introduction of XSD Built-in Datatypes

 "string" and Its Derived Datatypes

 "decimal" and Its Derived Datatypes

 "dateTime" and Its Related Datatypes

 Miscellaneous Built-in Datatypes

 Facets, Constraining Facets and Restriction Datatypes

 "simpleType" - Defining Your Own Simple Datatypes

 Complex Element Declaration

 Identity-Constraints: unique, key and keyref

 Assertion as Custom Validation Rules

 XML Schema Location and Namespace in XML Documents

 Overriding Element Types in XML Documents

 Linking Multiple Schema Documents Together



 PDF Printing Version