Tag Paths

The section about GEDCOM has explained the model of the information handled by GenJ. The supported records (e.g. Individuals) are containers for information containing values structured hierarchically. Every record is identified by an ID, e.g.@I001@ for a person (individual), and GenJ will render records for you in several places.

If an ID identifies a record then how can one of its properties be clearly identified? The answer is: with Tag Paths. Let's look at an example:

   0 @I001@ INDI
     1 NAME Nils /Meier/
     1 SEX M
     1 BIRT
       2 DATE 25 May 1970
       2 PLAC Rendsburg, Germany
     1 RESI
       2 DATE FROM Sep 2001
       2 ADDR 788 Harrison St
         3 CITY San Francisco
         3 POST 94107
     1 NOTE @N003@

To identify one property in this tree of information one has to start at the root INDI and then work to a node of interest like NAME. Note how every node starts with a tag identifying the type of property contained (e.g. SEX or DATE). These are GEDCOM standard abbreviations. If one appends the tags encountered separated by ':' the result is the Tag Path INDI:NAME.

Here is a full list of possible Tag Paths for this Individual:

Most of the time only some of these paths will be of use depending on whether there's interest for the property's value of the last node.

We have to understand this concept when we

Back to Help-wiki