def GetSchema(component):
parent = component<EOL>while not isinstance(parent, XMLSchema):<EOL><INDENT>parent = parent._parent()<EOL><DEDENT>return parent<EOL>
convience function for finding the parent XMLSchema instance.