Hi,
I am getting following error while validating xml file with schema using
ReaderSettings in .NET 2.0
"Line: 0 - Position: 0 - The root element of a W3C XML Schema should be
<schemaand its namespace should be 'http://www.w3.org/2001/XMLSchema'."
First few lines of xsd file are as follows:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://schemas.keaneaustralia.com/Nts"
elementFormDefault="qualified"
targetNamespace="http://schemas.keaneaustralia.com/Nts" >
<xsd:element name="DeviceParameters" nillable="true"
type="tns:DeviceParameters" />
<xsd:complexType name="DeviceParameters">
<xsd:complexContent mixed="false">
<xsd:extension base="tns:DataElementOfDeviceParameter">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded"
name="DeviceParameter" type="tns:DeviceParameter" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
.........
I am not able understand why the error is coming.Any help would be highly
appreiciated.I have searched high and low on internet but not able to find
any useful
Thanks in advance for replying(as always)
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.