Re: Must the content of SchemaLocation be a resorvable URL?

ht,

Thanks a lot for your respone.

I understand by your answer that relative URLs are OK, but in your sample - should "my.xsd" really exist under "subdir"?

Should "subdir" exist under current URL? 

Some parsers require that there will be an "xsi:schemaLocation" attribute in the instance file for validation needs, but I can later use a URL resolver to set another location to the schema. This behavior allows me to put as value of "xsi:schemaLocation" any URL string I want, such as the schema name, without really giving any hint to its actual location.

But is it allowed according to XML Schema specification?

The specification mentions it is an optional attribute, and that its content should be a URL, but it doesn't say whether or not this URL should be resorvable (meaning that if I look for the schema under that location - I must find it).

Received on Tuesday, 15 July 2003 00:47:31 UTC