{
DataSet dsList = new DataSet();
try
{
ListData.Lists list = new ListData.Lists();
list.Url = SiteURL + "/_vti_bin/lists.asmx";
list.Credentials = new System.Net.NetworkCredential(
list.PreAuthenticate = true;
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
System.Xml.XmlNode ndQuery = xmlDoc.CreateNode(System.Xml.X
//ndQuery.InnerXml = "
ndQuery.InnerXml =nodeQuery;
System.Xml.XmlNode ndViewFields = xmlDoc.CreateNode(System.Xml.X
System.Xml.XmlNode ndQueryOptions = xmlDoc.CreateNode(System.Xml.X
System.Xml.XmlNode items = list.GetListItems(ListName, string.Empty, ndQuery, ndViewFields, "", ndQueryOptions, SiteGuid.ToString());
System.IO.StringReader sr = new System.IO.StringReader(items.
dsList.ReadXml(sr);
return dsList;
}
catch (Exception)
{
}
return dsList;
}