lib/x12/xmldefinitions.rb
def parse_table(e)
      name, min, max, type, required, validation = parse_attributes(e)

      content = e.find("Entry").inject({}) {|t, entry|
        t[entry.attributes["name"]] = entry.attributes["value"]
        t
      }
      Table.new(name, content)
    end
def parse_table(e)
      name, min, max, type, required, validation = parse_attributes(e)

      content = e.find("Entry").inject({}) {|t, entry|
        t[entry.attributes["name"]] = entry.attributes["value"]
        t
      }
      Table.new(name, content)
    end
parse_field