So I have this simple xsd file
Expand|Select|Wrap|Line Numbers
- <?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.