docs: def GetSchema(component):
      """convience function for finding the parent XMLSchema instance.
      """
      parent = component
      while not isinstance(parent, XMLSchema):
          parent = parent._parent()
      return parent