Well-formed vs. Valid
A well-formed XML document is one that follows the syntax rules
A valid XML document is one that conforms to a specified structure
For an XML document to be validated, it must be checked against a schema
Schema is a document that defines the structure for a class of XML documents
XML documents that are not intended to conform to a schema can be well-formed, but they cannot be valid