XML: Essentials and Schemas

Learning Objectives

  • Understand the rules of XML syntax
  • Author an XML document
  • Understand what schemas are used for
  • Create a schema using the XML Schema language
  • Validate an XML document against a schema

Prerequisite Skills

  • Use a mouse and keyboard
  • Open and save files
  • Open and close windows
  • Switch between windows

Title Contents

Expand the accordion folds to see a detailed description of the content.

Explore the contents of XML: Essentials and Schemas:

Learn about the history of XML, as well as practical applications of XML.

See the full content for Understanding XML.

Learn about the project created as part of XML: The Essentials, as well as set up the XML editing environment.

See the full content for Setting Up the XML Editing Environment.

Learn how to set up a new project in oXygen XML Editor.

See the full content for Setting up a new project in oXygen XML Editor.

Learn more about the syntax rules for creating XML documents.

See the full content for Exploring XML Syntax.

Check an XML document to ensure the content is well-formed - or, in other words, follows the rules of XML syntax.

See the full content for Checking for Well-Formedness.

Explore the difference between narrative and data-centric XML documents, as well as how to determine appropriate tags for an XML document based on the data you're working with.

See the full content for Designing an XML Document.

Attributes can be added to elements to help provide additional information about an element's contents - explore how to add them to elements in this section.

See the full content for Introducing Attributes.

Finish marking up the job_postings.xml file.

See the full content for Finish Adding Markup to the Document.

Schemas are used with XML files to help describe the structure of an XML document - learn more about why they're useful when working with XML in this section.

See the full content for What is a schema?.

XML Schema Definition, also simply referred to as XML Schema, is a schema language that follows XML syntax when constructing a schema. Learn more about XML Schema Definition in this section.

See the full content for XML Schema Definition: An introduction.

Learn how to create element declarations in the XML Schema Definition language.

See the full content for Creating element declarations in XML Schema.

Explore how to create attribute declarations in an XML Schema document.

See the full content for Creating attribute declarations in XML Schema.

Once your schema is complete, you can associate it with an XML document to help check for any errors in your markup. This section covers associating an XML Schema with an XML document, as well as checking an XML document for validity.

See the full content for Associate an XML Schema with an XML document.

In this section, you'll learn how to validate an XML document right inside the oXygen XML Editor application.

See the full content for Validate an XML document using a schema in oXygen XML Editor.

Check your work against the code listed here.

See the full content for Appendix 1: Completed Code Listing.

This is the code listing for the finished version of jobs.xsd.

See the full content for XML Schema: Completed code listing for jobs.xsd.

This page contains the outline for the XML and EAD session, with a quick review of the concepts covered in XML: The Essentials.

See the full content for XML and EAD.