Get a IEnumerable list of node for the category or dropdown.
The static type define the possible types:
public static IEnumerable<Category> GetAllRootNodesAsList(string type) { LoadXml(); List<Category> l = new List<Category>(); XmlNodeList typeList = _source.GetElementsByTagName(type); XmlNode root = typeList.Item(0); foreach (XmlNode x in root.ChildNodes) { Category c = new Category(); c.Name = x.LocalName; c.Value = x.LocalName; c.DefaultValue = x.Attributes[DataHelperConstClass.CATEGORY_DEFAULT].InnerText; l.Add(c); } return l; }