1

What does it mean if we say that, using XSD, we can validate XML documents that contain multiple namespaces. Does this make sense?

Thanks

1 Answer 1

3

Yes. There are a lot of reasons why an XML document may have multiple namespaces, but the most common is that it contains structures that are defined by different organizations. The typical way to do this is to use the xs:import directive to combine independent schema documents into one master schema.

For more information, see http://www.w3.org/TR/xmlschema-0/#import

Sign up to request clarification or add additional context in comments.

1 Comment

I see. So if in an XML instance, we are using different namespaces for different vocabularies, we will have several imports for the associated schemas so that the XML instance can be correctly validated? Is this correct? Thanks very much for your reply

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.