Re: SchemaLocation: schemaLocation value = 'myschema.xsd' must have even number of URIs.

Dne 3. říjen 2002, Jeni Tennison, <jeni@jenitennison.com> napsal:

Hi Jeni,
I like you. Thanks for you help again.
Have a nice day and weekend.
Georg Black.


> Hi Georg,
> 
> > I am trying to use namespaces. If I changed atribute
> > xsi:noNamespaceSchemaLocation to xs:scheamLocation and wrote
> > targetNameSpace to .xsd file I get this mistake from my
> > parser(Java-Xeres 2.0.0).
> >
> > SchemaLocation: schemaLocation value = 'myschema.xsd' must have even
> > number of URIs.
> >
> > What is wrong?
> 
> The xsi:schemaLocation attribute works a bit differently from the
> xsi:noNamespaceSchemaLocation attribute. It takes *pairs* of values in
> which the first value is a namespace URI and the second value is the
> location of the schema for that namespace, separated by whitespace. So
> you need it to look like:
> 
>   xsi:schemaLocation="http://www.example.com/namespace
>                       myschema.xsd"
> 
> instead, where "http://www.example.com/namespace" is whatever target
> namespace you're now using in your schema.
> 
> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
> 

______________________________________________________________________
Reklama:
WWW stranky zdarma na http://www.sweb.cz

Received on Friday, 4 October 2002 06:18:50 UTC