private GedcomRecordReader GetReader(string file) { var reader = new GedcomRecordReader(); reader.ReadGedcom(file); return(reader); }
private void DumpXML(string file) { string dir = ".\\Data"; string gedcomFile = Path.Combine(dir, file); reader = new GedcomRecordReader(); reader.ReadGedcom(gedcomFile); GedcomXMLGenerator gen = new GedcomXMLGenerator(); gen.Database = reader.Database; XmlDocument doc = gen.GenerateXML(); string xmlOutput = Path.Combine(dir, "XmlOutput"); if (!Directory.Exists(xmlOutput)) { Directory.CreateDirectory(xmlOutput); } string xmlFile = Path.Combine(xmlOutput, file + ".xml"); doc.Save(xmlFile); }
private void Read(string file) { string dir = ".\\Data"; string gedcomFile = Path.Combine(dir, file); reader = new GedcomRecordReader(); reader.ReadGedcom(gedcomFile); }