XML Toolkit for GenoPro
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        


12»»

XML Toolkit for GenoPro Expand / Collapse
Author
Message
Post #16307 Posted 2/10/2007 6:03:41 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
At last I have a beta(gamma?) version of the Toolkit running as a Javascript skin under the Report Generator.

It will add marriage/divorce dates to the family label, create multi-line custom tags, specifically aimed at use as the top display label for individuals.  The templates for these tags can be modified via Dictionary.xml. Note that although multi-line custom tags can be displayed as the top label for an individual, such tags cannot be modified within GenoPro.There is an option to mark as dead anyone over a specified age. Also a number of options aimed at recovering Gedcom data languishing in Custom Tags after a Gedcom import.

See the front of file toolkit.js to see documentation on options or see the options selection form below.

To install unpack the attached zip into a folder named 'XML Toolkit' under your GenoPro 'skin' folder. It should then appear in the list of skins in the GenoPro Report Generator.

I have done limited testing but it has yet to be exposed 'in the wild' so use with caution. It produces a GenoPro compatible XML file with the changes in the specified Report folder. I recommend comparing the before an after XML files to check changes. First export your existing .gno file to an XML to serve as the reference. Run this utility and open the XML file produced with GenoPro. Check that it loads with no errors and visually verify the changes using GenoPro. Then export this new file as another new XML file (this will provide your data in the same format as your reference XML file). Then compare the reference XML file with this latter file with a utility such as WinMerge or WinDiff. (Google will find downloads for these if reqd). If you are happy with the changes you can then save the new XML file as a .gno file. Play safe a keep a backup of the original.

Update: 2007/02/11 revised attachment (b2).
Update: 2007/02/12 another revision to attachment (b3).
Update: 2007/02/12 marriage date option added (b4).
Update: 2007/03/10 marriage date option corrected (b5).
Update: 2007/03/11 date month lower case correction (b6).
Update: 2007/03/12 amendment to text on form (b7)
Update: 2009/03/24 date & place of marriage Name case conversion options added. Dialogue window now brought to front.
Update: 2009/03/26 minor update to mode of popup error message.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


  Post Attachments 
Toolkit_2009.03.26.zip (36 views, 22.06 KB)
Post #16310 Posted 2/10/2007 10:34:03 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:10:48 PM
GenoPro Version: 2.0.1.4
Posts: 440, Visits: 3,428
Hi Ron, great to see tjhis new update, unfortunately I found a problem as follows :-

Generating report to 'C:\Family Trees 2007\2007 New Families\xml test\'
Cloning document xml test tool...
Opening configuration file Config.xml for skin '\XML Toolkit\*'...
Loading dictionary.xml...
[0.00] Processing template 'Toolkit.js'...
Processing 9 Families.....
Processed 9 families
adding 'DisplayText' tags (labels) to 7 of these
Processing 48 individuals...
Error at line 269 (Toolkit.js) : Type incompatible
Erreur d'exécution Microsoft JScript 800A000D

The offending line is here :-

strValue=Dic.Peek(strTag);

Post #16317 Posted 2/11/2007 5:48:33 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
Sorry Iain, I think I changed the code in this area and forgot to retest it. I have attached a revision to my original post below (or above, depending on your forum control panel settings!)

I have taken the opportunity to revise the code to add birth comments detailing the particular religious event if it does not match those catered for by GenoPro. e.g. Blessing, First Communion, Bar-Mitzvah etc..


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16331 Posted 2/12/2007 7:17:10 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:10:48 PM
GenoPro Version: 2.0.1.4
Posts: 440, Visits: 3,428
Hi Ron,

I downloaded your new version of the js and replaced the one on the XMLtools skin with it but now get this error

Generating report to 'C:\Family Trees 2007\2007 New Families\xml test\'
Cloning document xml test tool...
Opening configuration file Config.xml for skin '\XML Toolkit\*'...
Loading dictionary.xml...
[0.00] Processing template 'Toolkit.js'...
Processing 9 Families.....
Processed 9 families
adding 'DisplayText' tags (labels) to 7 of these
Processing 48 individuals...
Error at line 359 (Toolkit.js) : 'length' a la valeur Null ou n'est pas un objet.
Erreur d'exécution Microsoft JScript 800A138F

The line in question is the following

if (strDate.length>3) strDate=strDate.substr(strDate.length-4);

I tried it again without trying to use the census or residence and occupations and it seems to have worked for the marriage lines and DOB s etc.

Post #16332 Posted 2/12/2007 11:45:11 AM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
What am I doing wrong? I downloaded Toolkit.js and placed it in a folder Program Files\GenoPro2007\Skins\XML Toolkit but my list of report options is unchanged, ie

Customized English Narrative Report\* (English Narrative Report)
Display All Comments
English Narrative Report
Export to Gedcom
Export to SQL
Save All GenoMaps to Disk

I am guessing the XML folder needs some of the standard files, but will hope for guidance
Post #16334 Posted 2/12/2007 12:08:25 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
appleshaw (2/12/2007)
What am I doing wrong? I downloaded Toolkit.js and placed it in a folder Program Files\GenoPro2007\Skins\XML Toolkit but my list of report options is unchanged

Toolkit.zip contains three files - Config.xml, Dictionary.xml and Toolkit.js. Unzip toolkit.zip and place all three files in the folder 'XML Toolkit' in your skins folder. The Options tab of GenoPro's Generate Report shows where GenoPro looks for skin folders.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16336 Posted 2/12/2007 12:27:01 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:10:48 PM
GenoPro Version: 2.0.1.4
Posts: 440, Visits: 3,428
I noticed that the zip 2 only had the js file in it which I had added to the skin folder.

Now I have downloaded the zip 3 with all three files in it and it worked perfectly. Thanks

One point, the old system allowed to show the choice of full dates above the marriage line instead of just the year.

Would it be possible to add this option ?

Post #16337 Posted 2/12/2007 12:28:23 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
IainTait (2/12/2007)

Error at line 359 (Toolkit.js) : 'length' a la valeur Null ou n'est pas un objet.
Erreur d'exécution Microsoft JScript 800A138F
The line in question is the following
if (strDate.length>3) strDate=strDate.substr(strDate.length-4);

Looks like you have a CENS tag without a DATE subtag. I didn't allow for this, a Census entry without a date would not be of much use. Version 2.0.0.b3 has the fix anyway, also a fix to prevent an empty CENS tag being left.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16338 Posted 2/12/2007 12:32:57 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:10:48 PM
GenoPro Version: 2.0.1.4
Posts: 440, Visits: 3,428
Ron (2/12/2007)

Looks like you have a CENS tag without a DATE subtag. I didn't allow for this, a Census entry without a date would not be of much use. Version 2.0.0.b3 has the fix anyway, also a fix to prevent an empty CENS tag being left.

I had done a second try without the census box ticked and it worked with zip 2. Now with zip 3 all work including the census box, so thanks again !

Post #16341 Posted 2/12/2007 2:23:17 PM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
Got past stage 1 now but on two files I get

Generating report to 'D:\Data\GenoPro Beta Report\beta2\'
Cloning document RollissonNBI...
Opening configuration file Config.xml for skin '\XML Toolkit\*'...
Loading dictionary.xml...
[0.00] Processing template 'Toolkit.js'...
Error at line 1216 (Toolkit.js) : Automation server can't create object
Microsoft JScript runtime error 800A01AD

Offending line appears to be
oIE = new ActiveXObject("InternetExplorer.Application")

So I assume it is something to do with my setup here. I am using FireFox with the IE Tab loaded, so can not load Internet Explorer directly. Just checked one of the old .vbs utilities, which gets same result, so I have probably solved the first stage of my problem - but others may have the same headache
Post #16343 Posted 2/12/2007 3:28:36 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
appleshaw (2/12/2007)
I am using FireFox with the IE Tab loaded, so can not load Internet Explorer directly.

I don't think having the IETab extension in Firefox should prevent IE from loading separately. I have just installed IETab on my Firefox  and I can still run IE and XML Toolkit. If you cannot load IE standalone this may be part of the problem. 'SearchWinIT.com' gives the following suggestion:


It sounds like the ActiveX components for IE may have become unregistered. Try typing these commands from the command line, in this order:

regsvr32 urlmon.dll
regsvr32 shdocvw.dll
regsvr32 mshtml.dll
regsvr32 browseui.dll
regsvr32 rsabase.dll

Systems with the Microsoft Java VM present, type: regsvr32 msjava.dll




'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16344 Posted 2/12/2007 4:25:45 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
IainTait (2/12/2007)
I noticed that the zip 2 only had the js file in it which I had added to the skin folder.

Apologies Iain, Appleshaw and others who may have downloaded 2.0.0.b2, it was incomplete.

One point, the old system allowed to show the choice of full dates above the marriage line instead of just the year.

Would it be possible to add this option ?

I have added these to 2.0.0.b4 (arriving shortly). New templates are added to Dictionary.xml and are reasonably straightforward provided you know the GenoPro Report Generator SDK and XML tag structure.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16345 Posted 2/12/2007 5:16:03 PM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
Tried this but on the third one (mshtml.dll) got the message
mshtml.dll was loaded, but the DllRegisterServer entry point was not found.
This file can not be registered.

Any help appreciated
Post #16346 Posted 2/12/2007 6:02:14 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
OK, a few questions, what error do you get if you try and run Internet Explorer, what is your IE version, what is your OS version and type (i.e. 32 bit or 64 bit). It is possible that Dial-a-fix may be of help here.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16347 Posted 2/12/2007 6:22:46 PM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
Thanks for response but I Googled the error and found a MS site. Went through registrations and Regedit to no avail so eventually managed to completely remove IE and reinstal, and it now works.

Regedit said I had IE v.7, even though it would not load, and I have gone back to v.6. Can not think how this happened but I will now be able to check things.

Thanks again
Post #16730 Posted 3/10/2007 6:26:41 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:10:48 PM
GenoPro Version: 2.0.1.4
Posts: 440, Visits: 3,428
Thanks Ron for your messages and this link.

I downloaded the new Toolkit and tried it with success but noticed that the dates come out as m. 8 AUG 1898 instead of m. 8 Aug 1898 as with the rest of the date formats.

I tried to see if I could change this but only managed to change the dropdown menu but the dates still came out in upper case as I don't understand the programming techniques. If this could be fixed the rest is perfect and as usual amazing.

Post #16746 Posted 3/11/2007 5:45:44 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
Hi Iain,
I spent ages scratching my head over this one until it eventually dawned on me that it was simply the Months table in Dictionary.xml!

 I had copied this from the 'Export to Gedcom' skin where uppercase month matches the Gedcom spec. I've now uploaded 2.0.0.b6 to fix it.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16748 Posted 3/11/2007 6:44:31 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:10:48 PM
GenoPro Version: 2.0.1.4
Posts: 440, Visits: 3,428
Ron (3/11/2007)
Hi Iain,
I spent ages scratching my head over this one until it eventually dawned on me that it was simply the Months table in Dictionary.xml!

 I had copied this from the 'Export to Gedcom' skin where uppercase month matches the Gedcom spec. I've now uploaded 2.0.0.b6 to fix it.

Thanks Ron, after I wrote my last message I had a good closer look at the Dictionary.xml and found the code lower down the page with the date formats, tried changing them and it worked ! I'm learning even though most of the code is as understandable to me as Chinese !

I will however use yours as who knows what damage I could do to the code in my ignorance!

Post #16750 Posted 3/11/2007 7:20:29 AM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
I've now uploaded 2.0.0.b6 to fix it.

To get this, do we re-download GenoPro2007. The help file says that 2.0.0.3 is the latest version, or do we wait for 2.0.0.4?
Post #16751 Posted 3/11/2007 8:32:47 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
The XML Toolkit is not part of GenoPro itself, but a '3rd party' add-on. I always attach the latest version to my first post in this thread. This is a link to the attachment. XML Toolkit version 2.0.0.b6 for GenoPro 2007


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #17133 Posted 3/29/2007 4:59:16 AM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
I downloaded a gedcom, which may have some funnies in it but the XML Toolkit threw up this error
Processing 11 Families.....
Error at line 203 (Toolkit.js) : Wrong number of arguments or invalid property assignment
Microsoft JScript runtime error 800A01C2

This was when I had selected the label for a marriage. Other parts work.
In case I had got a mixture of files, I cleared out all GenoPro2007 and reinstalled, including Timeline and Toolkit v.7.
I wondered if it was because the file has no marriages in it - but that is not the problem. I notice that there is a non-standard id for family, of the format F133. However I have erased the column and generated GenoPro id and still get the error
Post #17137 Posted 3/29/2007 9:00:17 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
You need to select one of the four label formats from the drop-down list below the checkbox. I need to improve the form validation to check for this so that a sensible error is generated if no format template is selected.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #17139 Posted 3/29/2007 10:49:55 AM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
You need to select one of the four label formats from the drop-down list

I had done that (eventually). If I select one of templates there is no problem. However if I add the marriage label to the selection I get the error

Post #17144 Posted 3/29/2007 1:59:14 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 4:04:00 PM
GenoPro Version: 2.0.1.6
Posts: 1,328, Visits: 6,569
Please select one of the family line templates at the bottom of the form, not the individual custom tags ones




'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #17149 Posted 3/29/2007 3:21:54 PM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 6:33:34 PM
GenoPro Version: 2.0.1.6
Posts: 973, Visits: 9,258
Thanks. It's easy when you know how and RTFM
« Prev Topic | Next Topic »

12»»

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 6:41 PM

Copyright 1998-2009 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.