15. XML

Like everything metaphysical, the harmony between thought and reality is to be found in the grammar of the language.

—Ludwig Wittgenstein

I played with an idea, and grew willful; tossed it into the air; transformed it; let it escape and recaptured it; made it iridescent with fancy, and winged it with paradox.

—Oscar Wilde

Objectives

In this chapter you’ll:

• Mark up data using XML.

• Learn how XML namespaces help provide unique XML element and attribute names.

• Create DTDs and schemas for specifying and validating the structure of an XML document.

• Create and use simple XSL style sheets to render XML document data.

• Retrieve and manipulate XML data programmatically using JavaScript.

Outline

15.1 Introduction

15.2 XML Basics

15.3 Structuring ...

Get Internet & World Wide Web: How to Program, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.