By Jean-Marie WAECHTER - Friday, January 26, 2007
|
I am using GenoPro 2007 release 2.0.0.2 I have the following message: Generating report to 'C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\janvier 2007.ged\' Cloning document Genealogie2 Janvier 2007... Opening configuration file Config.xml for skin 'Export to Gedcom'... Loading dictionary.xml... [0.00] Processing template 'Gedcom.js'... [0.96] Error: XML load failed Error at line 91 (Gedcom.js) : Cet objet ne gère pas cette propriété ou cette méthode Erreur d'exécution Microsoft JScript 800A01B6
|
By genome - Friday, January 26, 2007
|
There is a mistake on line 91 of gedcom.js. Report.AbortReport should be ReportGenerator.AbortReport . However this is not the cause of the problem. The primary error occurs on line 89 where the Microsoft XML Parser ActiveX component fails to load the GenoPro XML. I am unable to give a reason for this error at present.I would like to know which version of the MS XML parser you have installed on your system. It would be of help if you could visit this link http://www.bayes.co.uk/xml/utils/msxml_sniffer.htm and post the resulting table here.
|
By Jean-Marie WAECHTER - Friday, January 26, 2007
|
That's the MSXML Report
|
By genome - Friday, January 26, 2007
|
Thanks for that Jean-Marie. Unfortunately I cannot test with your version, MSXML 5.0, as it is only available with Office 2003, which I do not have. However I have tested with both MSXML 4.0 sp2 & MSXML 6.0 and found no problems. So either your installation of MSXML 5.0 is corrupt or there is something unusual about your .gno file. Could you please try running the 'Export to Gedcom' Report on one of the sample .gno files installed with GenoPro (normally in 'C:\Program Files\GenoPro\SampleFiles' ) e.g. either HarryPotter.gno or sampleGenogram.gno. If this fails in the same way I suggest you download & install MSXML 6.0 from http://www.microsoft.com/downloads/details.aspx?FamilyID=993C0BCF-3BCF-4009-BE21-27E85E1857B1. If however the sample files work correctly then I need to look into what is unusual about your file. Perhaps you could email it to me via GenoPro's 'Send File' facility or using the control panel in this forum.
|
By Jean-Marie WAECHTER - Friday, January 26, 2007
|
It is perfectly working with both, should be my .gno (??) Harry Potter.gno Generating report to 'C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\sample.ged\' Cloning document HarryPotter... Opening configuration file Config.xml for skin 'Export to Gedcom'... Loading dictionary.xml... [0.00] Processing template 'Gedcom.js'... Gedcom output has been written to file C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\sample.ged\HarryPotter.ged Generated and written 1 page in 0.828 seconds [0.82] Writing files from skin... [0.82] Writing pictures to report (89)... [0.82] Report Ready! Click on the "Close" button to continue. Samplegenogram.gno Generating report to 'C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\sample.ged\' Cloning document SampleGenogram... Opening configuration file Config.xml for skin 'Export to Gedcom'... Loading dictionary.xml... [0.00] Processing template 'Gedcom.js'... Gedcom output has been written to file C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\sample.ged\SampleGenogram_Sample Genogram.ged Generated and written 1 page in 0.141 seconds [0.17] Writing files from skin... [0.17] Report Ready! Click on the "Close" button to continue.
|
By Jean-Marie WAECHTER - Friday, January 26, 2007
|
by splitting my .gno file I identified a small part generating the bug: the file is attached. Generating report to 'C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\bug.ged\' Cloning document bug... Opening configuration file Config.xml for skin 'Export to Gedcom'... Loading dictionary.xml... [0.00] Processing template 'Gedcom.js'... [0.01] Error: XML load failed Error at line 91 (Gedcom.js) : Cet objet ne gère pas cette propriété ou cette méthode Erreur d'exécution Microsoft JScript 800A01B6
|
By genome - Saturday, January 27, 2007
|
The error returned by the MS XML parser indicates an illegal Unicode character. Your file contains the 'end of medium' EM code 25 in some of the comments. GenoPro has coded this as the entity  and it displays in GenoPro as e.g. <Comment>Nom: BARRE - Prénom: jean Père Prénom: >michel>.chevalleri>.</Comment>
Nom: BARRE - Prénom: jean Père Prénom: >michel>.chevalleri>.
I suggest you export your .gno file to .xml format (File/Export/Export to XML Format..) and then edit the xml file replacing all occurences of  with some other character(s) e.g. ';' say. Then reopen the edited .xml file with GenoPro and all should be OK.
|
By Jean-Marie WAECHTER - Saturday, January 27, 2007
|
Ron, it is WORKING now. Thanks for your help. I removed the invalid caracters and now it is fine. this is yielding an additionnal question/suggestion: in Gedcom generation (without report generator) you can choose character set (including ANSEL), but the generated gedcom do not carry properly unions. When using report generator, character set is Unicode, which is most of time not correctly recognized by external genealogy software (but unions are correctly handled), is it possible to have a the gedcom report generator with a skin in ANSEL ?? Thanks ==== NOW OK ! ==== Generating report to 'C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\janvier2007.ged\' Cloning document Genealogie2 Janvier 2007... Opening configuration file Config.xml for skin 'Export to Gedcom'... Loading dictionary.xml... [0.00] Processing template 'Gedcom.js'... Gedcom output has been written to file C:\Documents and Settings\Waechter\Mes documents\GenoPro Reports\janvier2007.ged\Genealogie2 Janvier 2007.ged Generated and written 1 page in 17.172 seconds [17.20] Writing files from skin... [17.20] Writing pictures to report (543)... [17.20] Report Ready! Click on the "Close" button to continue.
|
By GenoProSupport - Saturday, January 27, 2007
|
Ron (1/27/2007) The error returned by the MS XML parser indicates an illegal Unicode character. Your file contains the 'end of medium' EM code 25 in some of the comments. GenoPro has coded this as the entity Should GenoPro do anything regarding this problem?
|
By genome - Saturday, January 27, 2007
|
According to http://www.w3.org/International/questions/qa-controls#further all control codes in the range 0x00 - 0x1f are invalid in XML 1.0 except for 0x09 (Tab) , 0x0A (Linefeed) & 0x0D (Carriage Return). I suggest GenoPro converts invalid XML characters to U+00BF, the inverted question mark. ¿ and writes a warning to the message log on import. They can only be encoded under XML 1.1
|
By genome - Saturday, January 27, 2007
|
Jean-Marie WAECHTER (1/27/2007) When using report generator, character set is Unicode, which is most of time not correctly recognized by external genealogy software (but unions are correctly handled), is it possible to have a the gedcom report generator with a skin in ANSEL ??UTF-8 encoding is part of the Gedcom 5.5.1 draft standard and supported by several packages including PAF and Legacy Family Tree. You could always import your Gedcom to one of these and re-export as ANSEL. However, conversion of Unicode to ANSEL appears to me to be extremely complex, and not something I would like to tackle. So I will bat this question on to Dan - GenoPro has a Unicode to ANSEL routine used in the built-in export to Gedcom, could this be made available in the Report Generator SDK? The SDK already has a method: Method | Description | BufferWriteToFile(fileName, [encoding]) | Writes the content of the buffer to a file with an optional encoding. | But [encoding] is not documented and setting this parameter to 'ANSEL' produces an error.
|
By GenoProSupport - Saturday, January 27, 2007
|
Ron (1/27/2007)
According to http://www.w3.org/International/questions/qa-controls#further all control codes in the range 0x00 - 0x1f are invalid in XML 1.0 except for 0x09 (Tab) , 0x0A (Linefeed) & 0x0D (Carriage Return). I suggest GenoPro converts invalid XML characters to U+00BF, the inverted question mark. ¿ and writes a warning to the message log on import. They can only be encoded under XML 1.1 The XML encoding module was not designed to report errors/warning to the user, as encoding of text should not produce any error. Perhaps GenoPro change the header to XML version 1.1. Ron (1/27/2007)
However, conversion of Unicode to ANSEL appears to me to be extremely complex, and not something I would like to tackle. So I will bat this question on to Dan - GenoPro has a Unicode to ANSEL routine used in the built-in export to Gedcom, could this be made available in the Report Generator SDK? The SDK already has a method: Method | Description | BufferWriteToFile(fileName, [encoding]) | Writes the content of the buffer to a file with an optional encoding. |
But [encoding] is not documented and setting this parameter to 'ANSEL' produces an error. I have never been able to find a table to convert ANSEL to Unicode (or vice versa). The ANSEL encoding is one of the most cryptic encoding I have ever seen; it has no logic, no documentation, and no sample files. What I did was installing other genealogy software, typed some text with accents and looked how those characters were encoded in the .ged file. Worse of all, the ANSEL encoding is an extra [useless] layer on top of the current code page. As a result, you may have English-ANSEL encoding, Russian-ANSEL encoding, Hebrew-ANSEL encoding, and so on. When GenoPro imports a Gedcom file, it performs two decoding, one from the current language from the control panel and then the ANSEL decoding. There are tons of bugs regarding ANSEL encoding because there is no clear specifications. I would stay away from ANSEL encoding as much as possible. The method BufferWriteToFile has indeed a parameter for encoding. At the moment, the only valid value is GZip, however all the other encoding can be accepted. I looked at the code and the code was explicitly commented out because this feature has not been tested to my satisfaction. During the next beta phase, I will re-enable the code to support various encoding. In the meantime, use UTF-8 encoding.
|
By genome - Sunday, January 28, 2007
|
GenoProSupport (1/27/2007) The XML encoding module was not designed to report errors/warning to the user, as encoding of text should not produce any error. Perhaps GenoPro change the header to XML version 1.1. Support for XML 1.1 appears to be a little sparse and is not supported by any version of the MS Parser, therefore changing the header to 1.1 would not be helpful as errors would still occur. But I still think GenoPro should produce valid XML 1.0 so I would be happy if it silently converted invaid codes to some other character. I realise the inverted question mark is used in Spanish so might be a little confusing. Perhaps the currency sign ¤ would be a better choice as a widely available character that is not used much.
|
By GenoProSupport - Sunday, January 28, 2007
|
I don't want GenoPro to perform any character substitution. My intuition is this will give me trouble in the future. I think it is already the case, since XML 1.1 is considering supporting those characters. Clearly, I don't understand why those XML readers cannot support entities such as  or  while it can support entities such as 	 and . If GenoPro converts some characters to ¤ , then how GenoPro will read back those original characters? Displaying ¤ for an unknown character is a good idea, however storing ¤ in XML will result in data loss. I want XML to be round-tripping, that is writing, reading and writing back to give the same result. The other question is: how those illegal characters got there? The entity/character  which is the EM (U+0019) should probably be converted to a dash during the Gedcom import, not in the XML export.
|
By jcmorin - Sunday, January 28, 2007
|
GenoProSupport (1/28/2007) The entity/character  which is the EM (U+0019) should probably be converted to a dash during the Gedcom import, not in the XML export.I agree that the illegal character conversion should happen during at the Gedcom import.
|
By genome - Sunday, January 28, 2007
|
JcMorin (1/28/2007)
GenoProSupport (1/28/2007) The entity/character  which is the EM (U+0019) should probably be converted to a dash during the Gedcom import, not in the XML export.I agree that the illegal character conversion should happen during at the Gedcom import.
Me too. It doesn't matter to me how we get there, the result is the same - valid XML 1.0 GenoPro data is visible externally as XML, so whether the conversion is on input or output is immaterial.
|
By GenoProSupport - Thursday, February 1, 2007
|
For those having this problem, here is a solution: 1. Rename the .gno file to .zip. 2. Double-click on the .zip file and extract the file Data.xml. 3. Double-click on the file Data.xml. Internet Explorer will display the errors. 4. Using Notepad, remove the errors, that is all  5. Open the file Data.xml using GenoPro. 6. Voilà. Fixing the Gedcom import module will prevent further errors, however if you are getting errors generating a report, it is too late because the data is already in your .gno file. The trick then is fixing the .gno file.
|
By GenoProSupport - Tuesday, March 13, 2007
|
GenoPro 2007, version 2.0.0.3 has a fix by removing garbage (illegal) characters from a Gedcom file.
|