I am really sorry if this sounds stupid. Namespace is just not my cup
of tea.
Could anybody tell me what is wrong with this xsd file (It has
something wrong with the namespaces)
I am getting the error "The element 'Books' is used but not declared in
the DTD/Schema."
If I remove targetNamespace ="http://calendar/aiman" and
xmlns:myns="htt p://calendar/aiman" and change type="myns:Book Type" to
type="BookType" it works.
-------------------------------------------------
<?xml version="1.0"?>
<xsd:schema
targetNamespace ="http://calendar/aiman"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:myns="htt p://calendar/aiman"
elementFormDefa ult="qualified" >
<xsd:element name="Books">
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="Book" type="myns:Book Type" minOccurs="1"
maxOccurs="unbo unded"/>
</xsd:sequence>
</xsd:complexType >
</xsd:element>
<xsd:complexTyp e name="BookType" >
<xsd:sequence >
<xsd:element name="Name" type="xsd:strin g" minOccurs="1"/>
<xsd:element name="Author" type="xsd:strin g" minOccurs="1"/>
<xsd:element name="Award" type="xsd:strin g" minOccurs="0"/>
<xsd:element name="Price" minOccurs="1">
<xsd:simpleType >
<xsd:restrictio n base="xsd:integ er">
<xsd:minInclusi ve value="0"/>
<xsd:maxInclusi ve value="5000"/>
</xsd:restriction >
</xsd:simpleType>
</xsd:element>
<xsd:element name="Descripti on" minOccurs="0" maxOccurs="1">
<xsd:simpleType >
<xsd:restrictio n base="xsd:strin g">
<xsd:maxLengt h value="50"/>
</xsd:restriction >
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
<xsd:attribut e name="id" type="xsd:integ er" use="required"/>
</xsd:complexType >
</xsd:schema>
------------------------------------------------------------------
If u help me solve this , i'll bless u with my infinte stupidity/wisdom
;)