def parse_element(element)
case element
when AllName
@content = All.new
when SequenceName
@content = Sequence.new
when ChoiceName
@content = Choice.new
when GroupName
@content = Group.new
when ComplexContentName
@complexcontent = ComplexContent.new
when SimpleContentName
@simplecontent = SimpleContent.new
when AttributeName
o = Attribute.new
@attributes << o
o
when AttributeGroupName
o = AttributeGroup.new
@attributes << o
o
when AnyAttributeName
o = AnyAttribute.new
@attributes << o
o
else
nil
end
end