def getAttribute(self, attribute):
value = XMLSchemaComponent.getAttribute(self, attribute)<EOL>if attribute != '<STR_LIT:type>' or value is not None:<EOL><INDENT>return value<EOL><DEDENT>if self.content is not None:<EOL><INDENT>return None<EOL><DEDENT>parent = self<EOL>while <NUM_LIT:1>:<EOL><INDENT>nsdict = parent.attributes[XMLSchemaComponent.xmlns]<EOL>for k,v in list(nsdict.items()):<EOL><INDENT>if v not in SCHEMA.XSD_LIST: continue<EOL>return TypeDescriptionComponent((v, '<STR_LIT>'))<EOL><DEDENT>if isinstance(parent, WSDLToolsAdapter)or not hasattr(parent, '<STR_LIT>'):<EOL><INDENT>break<EOL><DEDENT>parent = parent._parent()<EOL><DEDENT>raise SchemaError('<STR_LIT>')<EOL>
return attribute.
        If attribute is type and it's None, and no simple or complex content, 
        return the default type "xsd:anyType"