var response = _facebookAPI.Fql.Query(String.Format("SELECT uid FROM event_member WHERE eid={0}", myevent));
I would like to convert response to
List<long> uids
var response = _facebookAPI.Fql.Query(String.Format("SELECT uid FROM event_member WHERE eid={0}", myevent));
I would like to convert response to
List<long> uids
Assuming that the string returned is an XMLDocument:
var response = _facebookAPI.Fql.Query(String.Format("SELECT uid FROM event_member WHERE eid={0}", myevent));
XmlDocument doc = new XmlDocument();
doc.LoadXml(response);
XmlNodeList uids = doc.GetElementsByTagName("uid");
var uids = new List<long>();
foreach (XmlNode node in uids)
{
long id;
if (long.TryParse(node.InnerText, out id))
{
uids.Add(id);
}
}