public void ParseTodoBugList(XmlElement e, out List <VariableListEntry> list) { List <VariableListEntry> l = new List <VariableListEntry>(); e = e.FirstChildElementOfType("detaileddescription").FirstChildElementOfType("para").FirstChildElementOfType("variablelist"); VariableListEntry entry = null; foreach (XmlElement child in e.ChildNodes.OfType <XmlElement>()) { if (child.Name == "varlistentry") { entry = new VariableListEntry(); entry.item = child.InnerXml; l.Add(entry); } if (child.Name == "listitem") { entry.value = child.InnerXml; } } list = l; }
public void ParseTodoBugList(XmlElement e, out List<VariableListEntry> list) { List<VariableListEntry> l = new List<VariableListEntry>(); e = e.FirstChildElementOfType("detaileddescription").FirstChildElementOfType("para").FirstChildElementOfType("variablelist"); VariableListEntry entry = null; foreach (XmlElement child in e.ChildNodes.OfType<XmlElement>()) { if (child.Name == "varlistentry") { entry = new VariableListEntry(); entry.item = child.InnerXml; l.Add(entry); } if (child.Name == "listitem") entry.value = child.InnerXml; } list = l; }