XML is designed to transmit and store data.

HTML is designed to display data.

XML validation syntax

XML that has correct syntax is called "well-formed" XML.

XML that passes DTD validation is "legal" XML.

XML validation example

<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>