From: Florian Gross Date: 2004-11-08T00:23:39+09:00 Subject: Re: [SOLUTION] GEDCOM Parser (#6) --------------090004090500020205060601 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Florian Gross wrote: > I've also attached sample output for the file given on > http://heiner-eichmann.de/gedcom/simple.ged ....to this follow-up posting. ;) --------------090004090500020205060601 Content-Type: text/plain; name="output.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="output.txt" Pretty-printed: {"HEAD"=> {"CHAR"=>"ASCII", "SUBM"=> {:value=> {"NAME"=>"/Submitter/", "ADDR"=>"Submitters address\naddress continued here"}}, "SOUR"=>"ID_OF_CREATING_FILE", "GEDC"=>{"FORM"=>"Lineage-Linked", "VERS"=>"5.5"}}, "SUBM"=> {"NAME"=>"/Submitter/", "ADDR"=>"Submitters address\naddress continued here"}, "TRLR"=>{}, "FAM"=> {"HUSB"=> {:value=> {"NAME"=>"/Father/", "FAMS"=>{:value=>{...}}, "SEX"=>"M", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}}, "CHIL"=> {:value=> {"NAME"=>"/Child/", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"31 JUL 1950"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"29 FEB 2000"}, "FAMC"=>{:value=>{...}}}}, "MARR"=>{"PLAC"=>"marriage place", "DATE"=>"1 APR 1950"}, "WIFE"=> {:value=> {"NAME"=>"/Mother/", "FAMS"=>{:value=>{...}}, "SEX"=>"F", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}}}, "INDI"=> [{"NAME"=>"/Father/", "FAMS"=> {:value=> {"HUSB"=>{:value=>{...}}, "CHIL"=> {:value=> {"NAME"=>"/Child/", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"31 JUL 1950"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"29 FEB 2000"}, "FAMC"=>{:value=>{...}}}}, "MARR"=>{"PLAC"=>"marriage place", "DATE"=>"1 APR 1950"}, "WIFE"=> {:value=> {"NAME"=>"/Mother/", "FAMS"=>{:value=>{...}}, "SEX"=>"F", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}}}}, "SEX"=>"M", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}, {"NAME"=>"/Mother/", "FAMS"=> {:value=> {"HUSB"=> {:value=> {"NAME"=>"/Father/", "FAMS"=>{:value=>{...}}, "SEX"=>"M", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}}, "CHIL"=> {:value=> {"NAME"=>"/Child/", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"31 JUL 1950"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"29 FEB 2000"}, "FAMC"=>{:value=>{...}}}}, "MARR"=>{"PLAC"=>"marriage place", "DATE"=>"1 APR 1950"}, "WIFE"=>{:value=>{...}}}}, "SEX"=>"F", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}, {"NAME"=>"/Child/", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"31 JUL 1950"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"29 FEB 2000"}, "FAMC"=> {:value=> {"HUSB"=> {:value=> {"NAME"=>"/Father/", "FAMS"=>{:value=>{...}}, "SEX"=>"M", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}}, "CHIL"=>{:value=>{...}}, "MARR"=>{"PLAC"=>"marriage place", "DATE"=>"1 APR 1950"}, "WIFE"=> {:value=> {"NAME"=>"/Mother/", "FAMS"=>{:value=>{...}}, "SEX"=>"F", "BIRT"=>{"PLAC"=>"birth place", "DATE"=>"1 JAN 1899"}, "DEAT"=>{"PLAC"=>"death place", "DATE"=>"31 DEC 1990"}}}}}}]} As YAML: --- HEAD: CHAR: ASCII SUBM: :value: &id001 NAME: "/Submitter/" ADDR: >- Submitters address address continued here SOUR: ID_OF_CREATING_FILE GEDC: FORM: Lineage-Linked VERS: "5.5" SUBM: *id001 TRLR: {} FAM: &id002 HUSB: :value: &id003 NAME: "/Father/" FAMS: :value: *id002 SEX: M BIRT: PLAC: birth place DATE: 1 JAN 1899 DEAT: PLAC: death place DATE: 31 DEC 1990 CHIL: :value: &id005 NAME: "/Child/" BIRT: PLAC: birth place DATE: 31 JUL 1950 DEAT: PLAC: death place DATE: 29 FEB 2000 FAMC: :value: *id002 MARR: PLAC: marriage place DATE: 1 APR 1950 WIFE: :value: &id004 NAME: "/Mother/" FAMS: :value: *id002 SEX: F BIRT: PLAC: birth place DATE: 1 JAN 1899 DEAT: PLAC: death place DATE: 31 DEC 1990 INDI: - *id003 - *id004 - *id005 As XML: ASCII ID_OF_CREATING_FILE
Lineage-Linked
5.5
/Submitter/ Submitters address address continued here marriage place 1 APR 1950 /Father/ M death place 31 DEC 1990 birth place 1 JAN 1899 /Mother/ F death place 31 DEC 1990 birth place 1 JAN 1899 /Child/ death place 29 FEB 2000 birth place 31 JUL 1950
--------------090004090500020205060601--