Message Oracle LSX-00146 - element or attribute is improperly defined

ERRORelement or attribute is improperly defined
CAUSEAn element or attribute definition must have either its type attribute set or must have one of its children be a simpleType or complexType element but both conditions cannot exist.
ACTIONRemove the erroneous condition.