all groups > dotnet xml > september 2006 >
You're in the

dotnet xml

group:

Strange validation warning


Strange validation warning jan_bar
9/22/2006 6:14:05 PM
dotnet xml:
Hi,

My VS.NET 2005 displays strang validation warning on xsi:SchemaLocation:
The attribute 'http://www.w3.org/2001/XMLSchema-instance:SchemaLocation'
does not match one of the four allowed attributes in the 'xsi' namespace.

The data seems to be correct, where is the problem?

Here are my files:

test.xml:
<?xml version="1.0" encoding="utf-8"?>
<root
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://test"
xsi:SchemaLocation="http://test test.xsd">
</root>

test.xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://test"
xmlns="http://test">
<xs:element name="root">
<xs:simpleType>
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:element>
</xs:schema>

Re: Strange validation warning Martin Honnen
9/22/2006 6:22:04 PM


[quoted text, click to view]


[quoted text, click to view]

Case matters, the name is schemaLocation and not SchemaLocation.


--

Martin Honnen --- MVP XML
Re: Strange validation warning jan_bar
9/22/2006 7:05:28 PM
Thanks Martin for pointing out my stupid bug.

Jan

[quoted text, click to view]

AddThis Social Bookmark Button