Problem with validation against Schema.

Hello.

I'm facing a validation problem between an Instance xml document and a
Schema I created (with no targetNanespace).
The Instance looks something like this:

<?xml version="1.0"?>

<xsi:proposals xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///C:/My Documents/schema1.xsd">

.....

</xsi:proposals>

The problems with this Instance:
1. The xml processor forces me to use the xsi namespace even though my
intention is not to use any namespace. When the elements are written without
namespace, the processor screams that the "elements are used but not
declared".
2. When the browser loads the Instance, the processor locates the Schema
document based on the xsi:noNamespaceSchemaLocation, but it only tests it
for well-formedness, NO VALIDATION BEING DONE HERE (e.g: Test the elements
and attributes data types, sequences etc..).

I assume that by identifying a namespace, the processor chooses not to
validate the Instance against my schema after locating it.

How can I enforce the processor to perform validation against my schema.

Thanks a lot!

Shay.

Received on Thursday, 30 January 2003 16:49:22 UTC