private List<int> buildFriendsList(XmlNodeList node) { if (node != null) { List<int> lists = new List<int>(); foreach (XmlNode n in node) { lists.Add(Convert.ToInt32(n.InnerText)); } return lists; } return null; }