1: public List<string> CheckSpelling(string Item)
2: {
3: List<string> ReturnList=new List<string>();
4: string Location="http://api.search.live.net/xml.aspx?query={0}&sources={1}&appid={2}";
5: Location=string.Format(Location,Item,"spell",APPID);
6: XmlDocument Doc = new XmlDocument();
7: Doc.LoadXml(Search(Location));
8: XmlNamespaceManager NamespaceManager = new XmlNamespaceManager(Doc.NameTable);
9: NamespaceManager.AddNamespace("api", "http://schemas.microsoft.com/LiveSearch/2008/04/XML/element");
10: NamespaceManager.AddNamespace("spl", "http://schemas.microsoft.com/LiveSearch/2008/04/XML/spell");
11: XmlNodeList Nodes = Doc.DocumentElement.SelectNodes("./spl:Spell/spl:Results/spl:SpellResult/spl:Value", NamespaceManager);
12: foreach (XmlNode Element in Nodes)
13: {
14: ReturnList.Add(Element.InnerText);
15: }
16: return ReturnList;
17: }