public static ChromeWebStoreEvent CreateFromXml(System.Xml.XmlElement n) { ChromeWebStoreEvent e = new ChromeWebStoreEvent(); e.costsList = new List <string>(); e.modifierList = new List <string>(); e.ikey = n.GetAttribute("ikey"); e.transaction_id = n.GetAttribute("transaction_id"); System.Xml.XmlNode costsNode = n.SelectSingleNode("./costs"); foreach (System.Xml.XmlNode nn in costsNode) { e.costsList.Add(nn.InnerText); } System.Xml.XmlNode attributesNode = n.SelectSingleNode("./modifiers"); foreach (System.Xml.XmlNode nn in attributesNode) { e.modifierList.Add(nn.InnerText); } return(e); }
public static ChromeWebStoreEvent CreateFromXml( System.Xml.XmlElement n) { ChromeWebStoreEvent e = new ChromeWebStoreEvent(); e.costsList = new List<string>(); e.modifierList = new List<string>(); e.ikey = n.GetAttribute("ikey"); e.transaction_id = n.GetAttribute("transaction_id"); System.Xml.XmlNode costsNode = n.SelectSingleNode("./costs"); foreach (System.Xml.XmlNode nn in costsNode) { e.costsList.Add (nn.InnerText); } System.Xml.XmlNode attributesNode = n.SelectSingleNode("./modifiers"); foreach (System.Xml.XmlNode nn in attributesNode) { e.modifierList.Add (nn.InnerText); } return e; }