Hey, I have a little problem in my XML Schema that ive been thinking for some time but as a beginner I think it would be better that I ask opinions from experts.
So I have this simple xsd file
And after some time of work I managed to leave only 1 error, which is following:
cvc-type.3.1.2: Element 'Henkilokunta' is a simple type, so it must have no element information item [children].
I dont understand the problem, because 'Henkilokunta' is my root element.
So I have this simple xsd file
Code:
<?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="Henkilokunta"> <xs:sequence> <xs:element name="tiskaus" type="xs:string"/> <xs:element name="kokki" type="xs:string"/> <xs:element name="tarjoilija" type="xs:string"/> <xs:element name="Keittio" type="xs:string"/> <xs:element name="sihteeri" type="xs:string"/> <xs:element name="Toimisto" type="xs:string"/> <xs:element name="siivooja" type="xs:string"/> <xs:element name="huoltomies" type="xs:string"/> <xs:element name="Kiinteistohuolto" type="xs:string"/> <xs:element name="IT-tuki" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="Henkilokunta" type="xs:string"/> </xs:schema>
cvc-type.3.1.2: Element 'Henkilokunta' is a simple type, so it must have no element information item [children].
I dont understand the problem, because 'Henkilokunta' is my root element.
Comment