XML can
be used to Create new Languages
XML is the mother of WAP and WML.
The Wireless Markup Language (WML), used to markup Internet
applications for handheld devices like mobile phones, is written in XML.
Illustration 2
XML documents use a self-describing and simple syntax.
<?xml version="1.0" encoding="ISO-8859-1"?>
<Mail>
<to>John</to>
<from>alice</from>
<heading>wake up</heading>
<body>Don't call me this weekend!</body>
</Mail>
The first line in the document - the XML declaration - defines the XML
version and the character encoding used in the document. In this case
the document
conforms to the 1.0 specification of XML and uses the ISO-8859-1
(Latin-1/West European) character set.
The
next line describes the root element of the document (like it was
saying: "this document is a note"):
<Mail>
The next 4 lines describe 4 child elements of the root (to, from,
heading, and
body):
<to>John</to>
<from>alice</from>
<heading>wake up</heading>
<body>Don't call me this weekend!</body>
And finally the last line defines the end of the root element:
</Mail>
Go To
Index
|