According to http://www.w3schools.com/schema/el_complexcontent.asp and the RuntimeException's message annotation should be allowed as a child element for ComplexType. But as can be seen in the following code snippet there exists no case block for annotation:
protected parseChildren(token, child, params) {
switch (child ){
case 'extension' :
derivation = new Extension(schema: schema) ; break
case 'restriction' :
derivation = new Restriction(schema: schema); break
default: throw new RuntimeException("Invalid child element '$child' in complexContent. Possible elements are 'anotation', 'extension' or 'restriction'.")
}
derivation.parse(token, params)
}
According to http://www.w3schools.com/schema/el_complexcontent.asp and the RuntimeException's message
annotation
should be allowed as a child element forComplexType
. But as can be seen in the following code snippet there exists no case block forannotation
: