Provides an introduction to XML markup and W3C XML Schema. The course is usually customised to use your documents and schema modules in its exercises.

This course suits someone who knows what XML is but has yet to look at the details of XML documents and W3C XML Schema.

By the end of the course, the participants will:

  • Understand XML markup and fix non-wellformed XML
  • Read W3C XML Schema documents
  • Understand the W3C XML Schema type system
  • Understand the structure and conventions of your schema
  • Be familiar with XML and W3C XML Schema editing

Duration: 1 day or 2 days

XML & W3C XML Schema

Our courses emphasise interaction, practical exercises, and examples from your field.

Training is most effective when it relates to what you already do and know. When we customise the course with examples from your own field, it helps you apply your new knowledge even sooner. Alternatively, the course can use general-purpose examples.

We can vary the course duration to suit your needs: a shorter course provides a technology overview and brings everyone up to speed with a common understanding, and a longer course gives you more time to cover the details and more time to spend on exercises.

A qualified trainer will deliver the course at your location, wordwide, or in Dublin, Ireland, where Mentea is located. We can teach one-to-one or to a lecture theatre, although small class sizes are best for practical training.

Sample Course Outline

1 Introduction


  • SGML
  • XML
    • XML 1.0 editions
    • XML 1.1
  • Where XML is used
  • APIs for XML

2 XML Documents

What is an XML document?

  • Elements
  • Attributes
    • Parsing attributes
    • xml:lang, xml:space, xml:base, xml:id
  • Wellformedness
  • Text
    • Reserved characters
    • Predefined entities
    • Numeric character references
  • Processing instructions
  • XML Declaration
    • XML Declaration is not a processing instruction
  • Comments
  • DOCTYPE (brief)
    • External subset
    • Internal subset
    • Element declarations
    • Attribute declarations
    • Entities
      • General entities
      • External parsed entities
      • External unparsed entities
    • Notation declarations

3 Namespaces

  • Namespaces in XML
  • Namespaces 1.0, Namespaces 1.1
  • Default namespace
  • Scope

4 XML Schemas


  • Schema technologies
    • DTD
    • W3C XML Schema
      • 1.0
      • Forthcoming 1.1
    • Relax NG
    • Related technologies
      • NVDL
      • GRDDL

5 W3C XML Schema

  • Simple schema
    • Start with a simple document
    • Develop simple schema for document
    • Use only global elements and attributes
  • Add datatypes
    • Review predefined datatypes
    • Add datatypes to simple schema
  • Define new datatypes
    • Derivation by restriction, list, union
    • Add new datatypes to the schema
  • Patterns
    • Add patterns to the schema
  • Complex datatypes
    • Alternative ways to write the example schema
  • Modular schemas
    • Introduce a second, simple document
    • Modularise the schema to put common elements in a separate module
  • Compare to standard schema
    • Introduce your schema for documents
    • Discuss annotations, etc., that aren't obvious from looking at instance documents
    • Discuss best practices from your schema design
  • Extending the schema
    • xs:anyType