public void generateBrandList() { if (BrandList != null) { BrandList.Clear(); } for (int i = 0; i < All_edp.Count; i++) { String inputurl = ("http://afs-sl-pservice01.afservice.org:8080/productservice2/getProductInfo/pcmall?edplist=" + All_edp[i] + "&ignoreCatalog=true"); // + 6926988/*EDP*/ + System.Xml.XmlTextReader reader = new XmlTextReader(inputurl); string brandx = ""; int edp_tempo = 0; // StringComparison comp = StringComparison.OrdinalIgnoreCase; while (reader.Read()) { while (reader.ReadToFollowing("edp")) { if (reader.Name == "edp") { edp_tempo = Convert.ToInt32(reader.ReadElementString("edp")); } if (reader.ReadToFollowing("manufacturer")) { brandx = reader.ReadElementString("manufacturer"); } if (BrandList.Contains(brandx)) { } else { BrandList.Add(brandx); } } } } }