Re: xsi:schemalocation vs. xsi:nonamespaceschemalocation

Hi Manav,

> We are faced with big confusion that if a XML document has
> xsi:noNamespaceSchemaLocation, then Schema used for creation of this
> XML doc needs to have targetNamespace or not.

It's fairly straight-forward:

  - if the schema has a target namespace, then you must use
    xsi:schemaLocation to locate it
    
  - if the schema has not got a target namespace, then you must use
    xsi:noNamespaceSchemaLocation to locate it

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Wednesday, 20 March 2002 05:10:02 UTC