I am making a small guestbook application using ASP.net and XML. I can write to it fine. But I get an error when I try to read the file.
This is the error that I get:
The schema namespace is invalid. Please use this one instead:
http://www.w3.org/2001/XMLSchema.
This is my XML file:
<Guests xmlns="http://tempuri.org/guest.xs">
<guest>
<name>test</name>
<email>
[email protected]</email>
<website>test</website>
<date>8/15/2004 10:32:09 PM</date>
<comments>test</comments>
<relation>Friend</relation>
</guest>
<xs:schema id="Guests" targetNamespace="http://tempuri.org/guest.xs" xmlns:mstns="http://tempuri.org/guest.xsd" xmlns="http://tempuri.org/guest.xs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="Guests" msdata:IsDataSet="true" msdata:EnforceConstraints="False">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="guest">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0" />
<xs:element name="email" type="xs:string" minOccurs="0" />
<xs:element name="website" type="xs:string" minOccurs="0" />
<xs:element name="date" type="xs:string" minOccurs="0" />
<xs:element name="comments" type="xs:string" minOccurs="0" />
<xs:element name="relation" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
</Guests>
Please help me out.
Thanks,
Brett