C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






urgenttttttttttttttttttttttttttttttttt.....


Posted Date: 20 Aug 2008      Total Responses: 2

Posted By: Kapil Dhawan       Member Level: Gold     Points: 1


hi all

i need to fetch an xml from a URL and need to show as it is on the page
can someone help me in that


what i was doing right now
DataSet ds=new DataSet();
ds.ReadXml("http://www.EdgarExplorer.com/EFX_dll/EdgarPro.dll?FetchFilingOrigXML1?SessionID=" + sessionid + "&ID=" + filingId + "");


is there any another way to fetch xml into any object and to response.write it on any page.



thanks in advance





Responses

Author: Danasegarane.A    20 Aug 2008Member Level: DiamondRating:     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 2008Member Level: SilverRating:     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..


Post Reply
You must Sign In to post a response.
Next : urgenttttttttttttttttttttttttttttttttt.....
Previous : XML
Return to Discussion Forum
Post New Message
Category: XML

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

UK Conference calling Company

Contact Us    Privacy Policy    Terms Of Use