| Author: Danasegarane.A 20 Aug 2008 | Member Level: Diamond | Rating: Points: 1 |
Try this one
using System; using System.IO; using System.Xml;
namespace Client.Chapter_22___XML { public class ReadXMLFromURL { static void Main(string[] args) { string localURL = "http:\\somehost\\Test.xml"; XmlTextReader myXmlURLreader = null; myXmlURLreader = new XmlTextReader (localURL);
while (myXmlURLreader.Read()) { //TODO -
} if (myXmlURLreader != null) myXmlURLreader.Close();
} } }
Source : http://www.java2s.com/Code/CSharp/XML/ReadXMLFromURL.htm
Hope this helps
Dana
|
| Author: suresh kumar goud 20 Aug 2008 | Member Level: Silver | Rating: Points: 1 |
You are reading am xnl file ..ok DataSet ds=new DataSet(); ds.ReadXml(xmlfile); ...then you neeed to display the xml file on the page ..ok You take grid on the page..and bind the dataset to gridview
gridview1.datasource =ds.readxml(xmlfile); gridview1.databind(); it display in the page..
|