public static List <Nota> GetNotasXML(Contactos.Contacto c) { var resultado = new List <Nota> (); var file = new XmlDocument(); file.Load(ficheroNotas + c.Email + ".xml"); foreach (XmlNode node in file.ChildNodes) { if (node.Name != "nota") { throw new Exception("formato incorrecto"); } var nota = new Nota(c); nota.contenido = node.InnerText; resultado.Add(nota); } return(resultado); }
public Nota(Contactos.Contacto c) { this.cont = c; }