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.
Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.