Check if schemaType is complex via schemaType

The typeInfo.getType()==COMPLEX check can differ from the schemaType
implementation (XmlSchemaSimpleType or XmlSchemaComplexType), and
list a complex type as ATOMIC. This happens when referencing an element
with complex content containing a simple type.
3 files changed