# File lib/wsdl/xmlSchema/schema.rb, line 58
  def parse_element(element)
    case element
    when ImportName
      o = Import.new
      @imports << o
      o
    when IncludeName
      o = Include.new
      @imports << o
      o
    when ComplexTypeName
      o = ComplexType.new
      @complextypes << o
      o
    when SimpleTypeName
      o = SimpleType.new
      @simpletypes << o
      o
    when ElementName
      o = Element.new
      o.form = 'qualified'      # root element is qualified
      @elements << o
      o
    when AttributeName
      o = Attribute.new
      @attributes << o
      o
    when GroupName
      o = Group.new
      @modelgroups << o
      o
    when AttributeGroupName
      o = AttributeGroup.new
      @attributegroups << o
      o
    else
      nil
    end
  end