How do I validate documents that use XML namespaces against XML Schemas?
To validate a document against an XML Schema, you must use a parser (or other processor) that supports XML Schemas. The processor checks that the document follows the rules in the schema. Validating against a schema is called schema validation. Validating against a DTD is simply called validation. (In practice, schema validation is often called validation and people understand whether a document is being validated against a DTD or an XML Schema.) Although there are a number of differences between schema validation and validation, the main difference between the two with respect to XML namespaces is that schema validation resolves qualified names into expanded names before comparing them, while validation simply compares the qualified names. As a result, a document being validated against an XML Schema can use any prefix in qualified names, while a document being validated against a DTD must use the prefix that is used in the DTD. For example, the following document is schema valid agai