Hello,
I have a simple schema as shown below. When I validate it, I get the error
"Type 'http://www.w3.org/2001/XMLSchema:empty pe' is not declared. An error
occurred at , (6, 12)."
***************
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<xsd:element name="Employee" >
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="Name" type="xsd:strin g" />
<xsd:element name="EmployeeT ype" type="xsd:empty pe" />
<xsd:element name="Salary" type="xsd:int" />
</xsd:sequence>
</xsd:complexType >
</xsd:element>
<xsd:simpleTy pe name="emptype">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="fulltime " />
<xsd:enumeratio n value="parttime " />
</xsd:restriction >
</xsd:simpleType>
</xsd:schema>
*************** *******
Can someone help?.
Thanks,
Ganesh
I have a simple schema as shown below. When I validate it, I get the error
"Type 'http://www.w3.org/2001/XMLSchema:empty pe' is not declared. An error
occurred at , (6, 12)."
***************
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<xsd:element name="Employee" >
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element name="Name" type="xsd:strin g" />
<xsd:element name="EmployeeT ype" type="xsd:empty pe" />
<xsd:element name="Salary" type="xsd:int" />
</xsd:sequence>
</xsd:complexType >
</xsd:element>
<xsd:simpleTy pe name="emptype">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="fulltime " />
<xsd:enumeratio n value="parttime " />
</xsd:restriction >
</xsd:simpleType>
</xsd:schema>
*************** *******
Can someone help?.
Thanks,
Ganesh
Comment