com.askren.genealogy.parser
Class GedComConverter

java.lang.Object
  |
  +--com.askren.genealogy.parser.GedComConverter

public class GedComConverter
extends java.lang.Object

This class converts GedCom files to XML so they can later be processed by XSLT

Author:
Jay Askren

Field Summary
static int XML_BODY
          a constant representing the body of an xml tag
static int XML_TAG_NAME
          a constant representing the name of an xml tag
 
Constructor Summary
GedComConverter()
           
 
Method Summary
static java.lang.String convertFile(java.lang.String inputFileName, java.lang.String outputFileName)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_BODY

public static int XML_BODY
a constant representing the body of an xml tag


XML_TAG_NAME

public static int XML_TAG_NAME
a constant representing the name of an xml tag

Constructor Detail

GedComConverter

public GedComConverter()
Method Detail

main

public static void main(java.lang.String[] args)

convertFile

public static java.lang.String convertFile(java.lang.String inputFileName,
                                           java.lang.String outputFileName)
Parameters:
inputFileName - a gedcom file
outputFileName - the name of the file we wish to create
Returns:
a valid xml document made from the gedcom file.
The gedcom file is converted to XML and written to disk with the file name given.


Copyright © 2002-2003 Indiana University. All Rights Reserved.