|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 46 minutes ago
Posts: 3,419,
Visits: 26,412
|
On further investigation of this issue I discovered that GenoPro allows characters to be stored in text that are actually invalid for XML files unless embedded within CDATA delimitiers. Characters with decimal code values below 32, i.e.below the space character in the ASCII character set, are 'control' characters. The only control characters allowed other than in CDATA sections in XML are 9 (tab) , 10 (linefeed) and 13 (carriage return). The character causing the problem in Joyaa's case is decimal code 11, which is known as VT or Vertical Tab. I presume this was imported via a gedcom file or copied and pasted from another source.
An error is flagged if XML data containing invalid characters is read/parsed using any standard XML parser. I have amended the script to remove invalid control characters before loading. This allows a gedcom file to be produced but note that the invalid characters will still remain in the output .ged as the data for it is obtained directly via the GenoPro Report Generator API and not via the XML. Joyaa's file also contained Tab characters which in fact are also illegal in Gedcom files. If the package you use to import the .ged file objects to these characters then I suggest you edit the .ged with a good text editor such as NotePad++ that allows find and replace for control characters via hexadecimal values. To use the amended report skin download the attached zipped folder and unzip into your GenoPro Report Skins folder replacing the existing {EN} Export to Gedcom folder
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
{EN} Export to Gedcom.zip
(16 views,
41.45 KB)
|
|
|
Forum Members
Last Login: Thursday, February 20, 2020
Posts: 3,
Visits: 18
|
Thank you Ron.
My cousin reports: "This page contains the following errors: error on line 18591 at column 7335: xmlParseCharRef: invalid xmlChar value 11Below is a rendering of the page up to the first error."I will email you the XML file - and thanks. Joyaa
Edited: Tuesday, February 18, 2020 by
Joyaa
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 46 minutes ago
Posts: 3,419,
Visits: 26,412
|
Well I have never known this error to occur before now but it suggests that the GenoPro XML is invalid i.e. syntactically incorrect. GenoPro holds its data in a zipped XML data file, saved as .gnoThe GenoPro Report Generator provides an interface allowing the report script to obtain the underlying XML text ( ReportGenerator. Document.GetTextXml) The gedcom script then tries to load it into a DOM using Microsoft XML parser which is when the error occurs. To help diagnose the cause of this previously unreported issue could you ask your cousin to use GenoPro's menu function File / Export / Export to XML to obtain the XML in a file for you. Then opening the XML file with IE or Chrome should flag the first invalid XML in the file. Report any findings here, Also if possible email me a copy of the XML file by attaching to an email sent via the email button on the left of this post under my user id.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Forum Members
Last Login: Thursday, February 20, 2020
Posts: 3,
Visits: 18
|
Thanks Ron. I have sent this to my cousin. He replies:
getting an error: Error at line 242, position 8 (Code/Utils.js): Exception thrown and not caught Microsoft JScript runtime error 800A139E
What do you think is happening? Thanks.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 46 minutes ago
Posts: 3,419,
Visits: 26,412
|
Hi Joyaa
If you read the whole of this thread you will see that GenoPro users have two methods of creating a gedcom file. You have been sent a 'gedcom' produced using GenoPro's built-in File/Export/Export to Gedcom method which as you have discovered does not produce a useful Gedcom file at all. Ask your sender to produce the gedcom file using the Report skin {en} Export to Gedcom to generate a much more compatible Gedcom file.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Forum Members
Last Login: Thursday, February 20, 2020
Posts: 3,
Visits: 18
|
Hi Ron,
I am not a GenoPro user but have been sent a GenoPro-created gedcom file that I wish to append (with the owner's permission) to my comprehensive existing data. The non-GEDCOM standard approach the GenoPro uses to label sources, and events (like an individual's occupation) appears to make the job very much harder. I am sure you will know this yourself, but by way of example for other readers: My own data shows an individual's occupation in this way: 1 OCCU He had a photographic studio In contrast, the GenoPro gedcom shows: 1 OCCUPATIONS @occu00048@, @occu00093@ and elsewhere in the file there is a key: 0 @occu00048@ Occupation 1 TITL He had a photographic studio 0 @occu00049@ Occupation 1 TITL ...etc.... Am I best to undertake some serious editing of the GenoPro gedcom file using NotePad++ or similar in order to render it GEDCOM-standard? Or is there a routine I can use - or send to a GenoPro user to apply for me - to create a GEDCOM-standard gedcom from the file that I have been sent? The Gedcom file I have been sent begins: 0 HEAD 1 SOUR GenoPro 2 NAME GenoPro® - Picture Your Family Tree!(TM) 2 VERS 3.0.1.4 2 CORP GenoPro 2 ADDR http://www.genopro.com1 DATE 27 JAN 2020 1 CHAR UTF-8 1 GEDC 2 VERS 5.5 2 FORM LINAGE-LINKED etc... It is 57,000 lines long.
Thanks, Joyaa
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 46 minutes ago
Posts: 3,419,
Visits: 26,412
|
Ok I have now looked into the Gedcom spec and it only allows one HUSB tag and/or one WIFE tag under the FAM record, however no gender is implied in the use of either tag.
I have amended the script so that where there is more than one partner in a family relationship then HUSB and WIFE tags are generated for the first two partners. If the first partner is male then HUSB is used with WIFE for the second irrespective of gender. Similarly if the first partner is female then WIFE is used and HUSB for the second. If there are more than 2 partners then a warning is generated. The amended skin is attached, download and unzip into your skins folder to replace the existing Gedcom Export skin folder.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
{EN} Export to Gedcom.zip
(10 views,
41.18 KB)
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 46 minutes ago
Posts: 3,419,
Visits: 26,412
|
Apologies for late response NiKo, I looked at the 5.5.5 spec when you posted but couldn't see anything I need to change to meet it, I.e. I consider the current output to be fully compatible so only possible change would be to change version in header. Unless anyone thinks differently.....
BlackAdder I shall investigate same sex and polygamous relationships. I suspect my script just looks for the one male and/or female.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Saturday, May 18, 2024
Posts: 10,
Visits: 42
|
Hi Ron, times are a changing. I have a same sex couple in my family tree. Everything looks good until I get to the FAM block in the Gedcom where it only reports one of the individuals:>>>>> 0 @fam00001@ FAM 1 WIFE @ind00002@ 1 CHIL @ind00001@ 1 MARR 2 TYPE Civil Marriage<<<<< The second FAMS person (ind00003) is not shown. I tried this with two Females and with two Males just to be sure. Are you able to update your "{EN} Export to Gedcom" plugin to cater for these situations which I'm sure will become more common place in time? Thanks
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Tuesday, March 25, 2025
Posts: 264,
Visits: 1,757
|
Any plans/need to updated for GEDCOM 5.5.5?
|