public override void Parse(System.Xml.XmlNode dom)
 {
     foreach (XmlNode n in dom.ChildNodes)
     {
         if (n.Name == "Principal")
         {
             var principal = new Principal();
             principal.Parse(n);
             principal.Parent = this;
             this.Principal   = principal;
         }
         else if (n.Name == "Dependent")
         {
             var dependent = new Dependent();
             dependent.Parse(n);
             dependent.Parent = this;
             this.Dependent   = dependent;
         }
     }
     base.Parse(dom);
 }
 public override void Parse(System.Xml.XmlNode dom)
 {
     foreach (XmlNode n in dom.ChildNodes)
     {
         if (n.Name == "Principal")
         {
             var principal = new Principal();
             principal.Parse(n);
             principal.Parent = this;
             this.Principal = principal;
         }
         else if (n.Name == "Dependent")
         {
             var dependent = new Dependent();
             dependent.Parse(n);
             dependent.Parent = this;
             this.Dependent = dependent;
         }
     }
     base.Parse(dom);
 }