O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A First XML Document

<?xml version="1.0"?>
<message>
<to>All visitors</to>
<greeting>Hello and Welcome to LearningXML.com!</greeting>
</message>

You might have just read your first XML document that isn't XHTML.

If you were aware that the XHTML you saw earlier in the book was, in fact, XML-compliant you will notice that this short greeting differs from XHTML in a number of ways; for example, it introduces new tags which are absent from XHTML. XHTML is only one application of XML; in particular, it is a re-write of HTML 4.0 in compliance with XML standards. As you read these chapters on XML, you will learn more about it and its associated family of technologies. This family of XML-related technologies is able to work together progressively.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required