Next / Previous / Contents / Shipman's homepage

4.5. A small, complete example file

Here is an example of a complete input file.

!nm 2008-04-02 @SocCo Socorro Co.
@NMT Socorro: New Mexico Tech
@home Socorro: 507 Fitch
mouchi*
@SAnt San Antonio
cantow
@home
cubthr

!nm 2008-04-04 @Soc Socorro
@home Socorro: 507 Fitch
casfin1m2f
@Terry Socorro: New Mexico Tech: Terry Lake
amecoo10 rudduc1f barswa rinduc1f1m
@NMT Socorro: New Mexico Tech
belkin1 grtgra1m amecoo2
@Speare Socorro: New Mexico Tech: Speare Hall
houfin* saypho

This file describes two field days: April 2 and April 4, 2008. The April 2 section describes four location codes. Code @SocCo is the day location, because all records were within Socorro County. Note that the last record, a Curve-billed Thrasher, is preceded by a back-reference to code @home, defined on the third line of the file.

Here is the XML produced from this example file:

<note-set period="March 2008">
  <!--================================================================-->
  <day-notes date="2008-04-02" day-loc="SocCo" state="nm">
    <day-summary default-loc="SocCo">
      <loc code="SocCo" name="Socorro Co."/>
      <loc code="NMT" name="Socorro: New Mexico Tech"/>
      <loc code="home" name="Socorro: 507 Fitch"/>
      <loc code="SAnt" name="San Antonio"/>
    </day-summary>
    <form ab6="mouchi" loc="home">
    </form>
    <form ab6="cubthr" loc="home"/>
    <form ab6="cantow" loc="SAnt"/>
  </day-notes>
  <!--================================================================-->
  <day-notes date="2008-04-04" day-loc="Soc" state="nm">
    <day-summary default-loc="Soc">
      <loc code="Soc" name="Socorro"/>
      <loc code="home" name="Socorro: 507 Fitch"/>
      <loc code="Terry" name="Socorro: New Mexico Tech: Terry Lake"/>
      <loc code="NMT" name="Socorro: New Mexico Tech"/>
      <loc code="Speare" name="Socorro: New Mexico Tech: Speare Hall"/>
    </day-summary>
    <form ab6="rinduc">
      <floc loc="Terry" sex="f" count="1"/>
      <floc loc="Terry" sex="m" count="1"/>
    </form>
    <form ab6="rudduc" loc="Terry" sex="f" count="1"/>
    <form ab6="amecoo">
      <floc loc="Terry" count="10"/>
      <floc loc="NMT" count="2"/>
    </form>
    <form ab6="belkin" loc="NMT" count="1"/>
    <form ab6="saypho" loc="Speare"/>
    <form ab6="barswa" loc="Terry"/>
    <form ab6="grtgra" loc="NMT" sex="m" count="1"/>
    <form ab6="casfin">
      <floc loc="home" sex="m" count="1"/>
      <floc loc="home" sex="f" count="2"/>
    </form>
    <form ab6="houfin" loc="Speare">
    </form>
  </day-notes>
</note-set>