Hi Aland
Thanks very much with this informtion. I have read the remarks and i am working with 2.0 Framework. so i used the XmlReder instead of XmlNodeReader. This is my new code. Do you think is good?
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
XmlNode ndListItems = service.GetListItems(listName, viewName, null, null, rowLimit, null, null);
MessageBox.Show(ndListItems.OuterXml);
XmlReader reader1 = new XmlNodeReader(ndListItems);
XmlReaderSettings settings = new XmlReaderSettings();
settings.ConformanceLevel = ConformanceLevel.Fragment;
settings.IgnoreWhitespace = true;
settings.IgnoreComments = true;
XmlReader reader = XmlReader.Create(reader1, settings);
DataSet ds = new DataSet();
//ds.ReadXmlSchema(reader);
ds.ReadXml(reader);
dataGridView1.DataSource = ds.Tables[0];
dataGridView1.Show();
and it throws this exception on this line:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll
XmlReader reader = XmlReader.Create(reader1, settings);
I have made the reader1 as parameter because i don't want to save the xml i want to read directly trough the xml.
Thanks in advice for your help
Keyaa