GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Convert from CSV to Genopro XML


https://support.genopro.com/Topic28380.aspx
Print Topic | Close Window

By powery - Monday, May 16, 2011
Hello,

is there a definition of GenoPro XML tags? Is it possible to convert from CSV to Genopro XML? Has anyone some scripts to do this?

Thanks
By GenoProSupport - Tuesday, May 17, 2011
All the XML tags are available in the Tag Definitions dialog from the Tools menu.
By tukusejssirs - Sunday, January 14, 2018
I am about to create a bash script to convert .csv to .xml. But some parts of the code I do not understand.

What is this part for? Does it change? If yes, when does it change?

<Tag>YoB_YoD</Tag>

It is part of the <global> tag, like this:

<Global>
  <Name>
    <Full Format="%T %F (%N) %M %L (%L2) %S"/>
    <Display Format="%F %M %L (%L2)" Lines="3"/>
  </Name>
  <Font>Arial</Font>
  <Display>
    <Tag>YoB_YoD</Tag>
    <Colors>
      <Gender Symbol="#000000" Text="#000000" Fill="#FFFFFF">
        <Fill>
          <Top Left="#FF0000" Right="#FF0000"/>
          <Bottom Left="#FF0000" Right="#FF0000"/>
        </Fill>
      </Gender>
      <Border Outline="#6E6EFF">
        <Fill>#FFFF80</Fill>
      </Border>
      <Label Top="#000000" Bottom="#000000">
        <Fill Top="#FFFFFF" Bottom="#FFFFFF"/>
      </Label>
    </Colors>
  </Display>
  <ActiveGenoMap>GenoMap1</ActiveGenoMap>
</Global>
By tukusejssirs - Sunday, January 14, 2018
And the most complicated for me, is the calculation of the position of people and families – is this part of code licenced? Or can anyone help at least with the algorithm creation?

Thank you in advance. Smile
By genome - Sunday, January 14, 2018
Global.Display.Tag indicates what is to be set as the label above the gender symbol, YoB_YoD is year of birth - year of death. It changes according to what is set under the GenoPro Display Menu item.

As to how to calculate the position of items on the genogram, that seems to be a black art, c.f. many discussions on this forum re auto-arrange.   I think the best you can do is not to add any positional data but leave to GenoPro's auto-arrange to sort it out the best it can when you load your XML.

GenoPro code is not open source and so the actual algorithm used is not available AFAIK. However a sample plugin application was released as part of the SDK https://www.genopro.com/sdk/automation/plugin.aspx which includes a c# version of a custom auto-arrange that may be of some use.
By appleshaw - Monday, January 15, 2018
When I had a load of data in a table that I wanted to use I wrote a Basic program to convert it into gedcom. There was only limited data ie baptism records so just had to create a family for each record.
If you Google "csv to gedcom" there are several options including freeware ACC2GED
I have not tried these but as the original data presumably does not contain location it is easier to let GenoPro sort this out on loading
By tukusejssirs - Saturday, April 28, 2018
Thank you @genome, your answer was very useful. Smile

And @appleshaw, yes, I heard of ACC2GED. Though I’ve never tried it, I wanted something what is more linuxish. Wink