Ejemplo n.º 1
0
 public void LoadFromXml(XmlDocument doc)
 {
     foreach (XmlElement e in doc.ChildNodes)
     {
         if (e.Name.Equals("doc"))
         {
             foreach (XmlElement ef in e.ChildNodes)
             {
                 if (ef.Name.Equals("notes"))
                 {
                     BookNotes = ef.InnerText;
                 }
                 else if (ef.Name.Equals("page"))
                 {
                     ReviewPage rp = new ReviewPage();
                     rp.Load(ef);
                     Pages[int.Parse(ef.GetAttribute("id"))] = rp;
                 }
             }
         }
     }
 }