CIS97 YT > Relax NG Projects > Family Tree Markup Language Sample

Relax NG Projects
Family Tre Sample

Project Index | Documentation | Relax NG | Sample XML File

<?xml version="1.0" encoding="UTF-8"?>
<family_tree>
  <people>
   <person id = "p1" gender = "m">
      <name>
         <given>Laxman kanchi</given>
         <surname>Rao</surname>
      </name>
   </person>
   <person id = "p2" gender = "m">
      <name>
        <given>Upendar Laxman</given>
        <surname>Rao</surname>
      </name>
      <birth>
        <place>Pune</place>
        <date>1920-05-12</date>
      </birth>
      <death>
         <place>Pune</place>
         <date>1986-05-13</date>
      </death>
      <spouse idref = "p3"/>
   </person>

   <person id = "p3" gender = "f">
      <name>
        <given>Pramilla</given>
        <surname>Rao</surname>
      </name>
      <spouse idref = "p2"/>
   </person>

   <person id = "p4" gender = "m">
      <name>
        <given>Gururaj</given>
        <surname>Shirke</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1947-04-25</date>
      </birth>
      <spouse idref = "p6"/>
      <father idref = "p2"/>
      <mother idref = "p3"/>
   </person>

   <person id = "p5" gender = "f">
      <name>
        <given>Usha</given>
        <surname>Shirke</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1952-06-14</date>
      </birth>
      <spouse idref = "p7"/>
      <father idref = "p2"/>
      <mother idref = "p3"/>
   </person>

   <person id = "p6" gender = "f">
      <name>
        <given>Chitra</given>
        <surname>Srinivas</surname>
      </name>
      <birth>
         <place>Mangalore</place>
         <date>1951-08-12</date>
      </birth>
      <spouse idref = "p4"/>
   </person>

   <person id = "p7" gender = "m">
      <name>
        <given>Raghu</given>
        <surname>uday</surname>
      </name>
      <birth>
         <place>Mangalore</place>
         <date>1950-06-19</date>
      </birth>
      <spouse idref = "p5"/>
   </person>

   <person id = "p8" gender = "m">
      <name>
        <given>Anand</given>
        <surname>Gururaj</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1973-11-29</date>
      </birth>
      <spouse idref = "p12"/>
      <father idref = "p4"/>
      <mother idref = "p6"/>
   </person>

   <person id = "p9" gender = "f">
      <name>
        <given>Rekha</given>
        <surname>Gururaj</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1977-12-08</date>
      </birth>
      <spouse idref= "p14"/>
      <father idref = "p4"/>
      <mother idref = "p6"/>
   </person>

   <person id = "p10" gender = "f">
      <name>
        <given>Poornima</given>
        <surname>Gururaj</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1987-01-25</date>
      </birth>
      <father idref = "p4"/>
      <mother idref = "p6"/>
   </person>

   <person id = "p11" gender = "m">
      <name>
        <given>Ashwin</given>
        <surname>uday</surname>
      </name>
      <birth>
         <place>Delhi</place>
         <date>1978-01-14</date>
      </birth>
      <father idref = "p5"/>
      <mother idref = "p7"/>
   </person>

   <person id = "p12" gender = "f">
      <name>
        <given>Aarthi</given>
        <surname>uday</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1980-06-14</date>
      </birth>
      <father idref = "p5"/>
      <mother idref = "p7"/>
   </person>

   <person id = "p13" gender = "f">
      <name>
        <given>Sujaya</given>
        <surname>Anand</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1974-06-24</date>
      </birth>
      <spouse idref = "p8"/>
   </person>

   <person id = "p14" gender = "m">
      <name>
        <given>Prashanth</given>
        <surname>Chowlur</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>1971-12-05</date>
      </birth>
      <spouse idref = "p9"/>
   </person>

   <person id = "p15" gender = "m">
      <name>
        <given>Rishabh</given>
        <surname>Anand</surname>
      </name>
      <birth>
         <place>Bangalore</place>
         <date>2001-04-16</date>
      </birth>     
      <father idref = "p8"/>
      <mother idref = "p13"/>
   </person>
  </people>

  <families>
    <family id = "f1">
      <husband idref = "p1"/>
      <wife idref = "p2"/>
    </family>
    <family id = "f2">
      <husband idref = "p2"/>
      <wife idref = "p3"/>
      <child idref = "p4"/>
      <child idref = "p5"/>
    </family>

    <family id = "f3">
      <husband idref = "p4"/>
      <wife idref = "p6"/>
      <child idref = "p8"/>
      <child idref = "p9"/>
      <child idref = "p10"/>    
      <marriage>
          <place>Bangalore</place>
          <date>1973-02-26</date>
      </marriage>
    </family>

    <family id = "f4">
      <husband idref = "p5"/>
      <wife idref = "p7"/>
      <child idref = "p11"/>
      <child idref = "p12"/>
      <marriage>
          <date>1975-02-23</date>
      </marriage>
    </family>

   <family id = "f5">
     <husband idref = "p14"/>
     <wife idref = "p9"/>
     <marriage>
        <place>Bangalore</place>
     </marriage>
     <description>A wonderful couple.</description>
   </family>
  </families>
</family_tree>