XML
XML
<?xml version=“1.0”?>
<address>
<name>Alice Lee</name>
<email>[email protected]</email>
<phone>212-346-1234</phone>
<birthday>1985-03-22</birthday>
</address>
Difference Between HTML and
XML
<?xml version=“1.0”?>
<address>
<name>Alice Lee</name>
<email>[email protected]</email>
<phone>212-346-1234</phone>
<birthday>1985-03-22</birthday>
</address>
Markup for the data aids understanding of its
purpose.
A flat text file is not nearly so clear.
Alice Lee
[email protected]
212-346-1234
1985-03-22
The last line looks like a date, but what is it for?
Expanded Example
address
name email phone birthday
first last
year month day
XML Trees