The Validation Process in XML
All parts of an XML file can be validated!
Done by specifying...
Structure for the document
Relationships among elements
Rules the documents must follow
Which element(s) are required or optional
Which attribute(s) are required or optional
How: by using a document type definition (DTD)
Can be in a separate file or embedded in the XML document
Using a separate source to validate is called Declarative Validation
the result whould look like
to get there
Imagine not needing to write error-handling code!