[WebMethod]
public static string[] GetItemList(string prefixText, int
count)
{
   List<string> suggestions = new List<string>();
   using (XmlTextReader reader = new
   XmlTextReader(HttpContext.Current.Server
   .MapPath("~/Countries.xml")))
   {
      while (reader.Read())
      {
         if (reader.NodeType == XmlNodeType.Element &&
         reader.Name == "Item")
         {
            string itemName = reader.ReadInnerXml();
            if (itemName.StartsWith(prefixText,
            StringComparison.InvariantCultureIgnoreCase))
            {
                  suggestions.Add(itemName);
                  if (suggestions.Count == count) break;
            }
         }
      }
   }
   return suggestions.ToArray();
}
