JAXB xjc expected element of type …
If you have trouble loading Xml using classes generated by xjc tool (included in JAXB distribution), be carefull and do not define XSD main element like this: <!– MAIN element –> <xs:element name=”main” type=”Main”> <xs:complexType name=”Main”> … The problem here is that the main element and main element type names are identical (except the first letter that is uppercased). Xjc