Since you're using the attribute "schemaLocation" you have to specify the
appropriate namespace. For example:

<?xml version="1.0" ?>
<MainTag xmlns="http://www.yourcompany.com/namespaces/yournamespace";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://www.yourcompany.com/namespaces/yournamespace
http://localhost/test.xsd";>
</MainTag>

The schemaLocation attribute requires two URIs in its value.
This namespace does not need to be a valid URI. Also, the Schema file does
not need to be specified as a complete URL, e.g. if you are inside a low
band network, it could be interesting to download this Schema and place it
in the same folder your XML file. So you can use:

<?xml version="1.0" ?>
<MainTag xmlns="http://www.yourcompany.com/namespaces/yournamespace";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://www.yourcompany.com/namespaces/yournamespace
test.xsd">
</MainTag>

best regards,
Leonardo Holanda
Systems Engineer
Insituto Atl�ntico
Fortaleza - CE - Brazil
http://www.atlantico.com.br/


----- Original Message -----
From: "Chandra Talluri" <[EMAIL PROTECTED]>
To: "Xerces List (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 5:01 PM
Subject: Dynamic XML Validation against schema giving Warning


>  Warning: org.xml.sax.SAXParseException: SchemaLocation: schemaLocation
> value = 'http://localhost/test.xsd' must have even number of URIs

> schema parameter is 'http://localhost/test.xsd'
>
> Any help is appreciated
>
> -Chandra
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to