
XML—Extensible Markup Language
|
717
structured and customizable nature of XML, it has become the preferred way in which a
wide variety of data is exchanged through the Web and related mediums. In other words,
XML’s use and functionality extends well beyond the Web.
e XML specication is available online, and I encourage you to explore it.
*
An excellent
printed reference for XML is XML in a Nutshell, ird Edition (O’Reilly Media, 2004), by
Elliotte Rusty Harold and W. Scott Means.
†
I have also found that Robert Eckstein’s XML
Pocket Reference, ird Edition (O’Reilly Media, 2005) is one of those books to have close
at hand.
‡
Authoring XML Documents
Authoring XML document is very much like authoring HTML documents, but there
are well-dened places in XML to encapsulate “character set” and “encoding” informa-
tion that tells the browser or other client soware how to interpret the text data of the
document.
e following is a brief XML le that is a lot like the HTML example provided earlier, but
includes two additional lines at the very beginning that are for XML:
<?xml version="1.0" encoding="euc-kr"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/
REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<H1></H1>
</BODY>
</HTML>
e rst line identies the document as XML, and also provides encoding information. If ...