A well formed XML document contains text and XML tags which confirm with the XML syntax.
Valid XML documents must be well formed and are additionally error checked against a DTD.
< ?xml version = "1.0" encoding = "ISO-8859-1'
?>
<! DOCTYPE employee SYSTEM "emp-dtd">
Rekha
6098
< designation> Manager
A valid document is used when documents require error checking, and many documents need to follow the same guidelines.