How can I validate an XML document that uses XML namespaces?
When people ask this question, they usually assume that validity is different for documents that use XML namespaces and documents that don’t. In fact, it isn’t — it’s the same for both. Thus, there is no difference between validating a document that uses XML namespaces and validating one that doesn’t. In either case, you simply use a validating parser or other software that performs validation. For information about how to construct an XML document that is valid and conforms to the XML namespace recommendation, see questions 7.6 and 7.7.