aspose file tools*
The moose likes Java in General and the fly likes How to read a Gedcom file in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to read a Gedcom file in java" Watch "How to read a Gedcom file in java" New topic
Author

How to read a Gedcom file in java

mitforu patel
Greenhorn

Joined: Jan 13, 2010
Posts: 11
Hi all,
I am going to build a project in which I have to build genealogy system. For that I need to create a gedcom file. I want to create a java program that can read and modify gedcom file. Any solutions?
Thank you
Mitesh.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

The first step in the solution would be to find where the GEDCOM format is documented. Then all that is left would be to write a program which understands that format.

Have you done the first step yet?
mitforu patel
Greenhorn

Joined: Jan 13, 2010
Posts: 11
No I have't. I dont know about gedcom file. So can you please guide me in that.
Thank you.
Mitesh.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

A suitable Google keyword would be "gedcom". You do have a working version of Google where you live, don't you? It's an extraordinarily valuable resource.
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

hey , any one of you devloped prograam for read/write to GEDCOM files?
please guide me in that..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
I just followed Paul's advice and found that there are at least 2 open source Java libraries that can handle those files.


Ping & DNS - my free Android networking tools app
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

hi,Ulf can you please mention the good libraries that you used ?
please provide their Links and Examples .

thank you very much !
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14156
    
  19

Piyush.... Here's a link for you.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

i didnt get how to make GEDCOM files.
and which library is there? please do some help ...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

Piyush Patel wrote:i didnt get how to make GEDCOM files.
and which library is there? please do some help ...


Piyush, everyone here is willing to help. But for questions like these, it's far easier to use a search engine and find out any documentation. I have zero knowledge (atleast until a few seconds back) about GEDCOM and have no clue whether there's any Java library which can help me with those files. So I just opened up my Google search toolbar and entered the following search phrase "gedcom open source java project". It showed up results which included a link to this which then led me to this project. So it does look like there's a Java library out there (as Ulf had already pointed out in his earlier reply), infact it even has its own forums (if you read through the documentation on that site).

So a few seconds back, I had no clue about what GEDCOM file was, but I now know what it is and that it has a Java library. Just a simple search helps, instead of having to wait for replies in forums for questions like these.

[My Blog] [JavaRanch Journal]
Matt Harrah
Ranch Hand

Joined: Aug 05, 2006
Posts: 54
This topic is past dead (nearly 3yo) but I thought I'd mention that there is a library called gedcom4j that does this kind of work.

http://gedcom4j.org

In interests of full disclosure, I am the author of that library, and am not an impartial endorser.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read a Gedcom file in java