myDataSet.ReadXml(Server.MapPath("books.xml"))

  • Thread starter Thread starter Guest
  • Start date Start date
ae said:
is the prope way to read xml files, as long as they are on my server, but how
do i access them from other sites, such as http://www.site.com/xmltoread.xm

You can pull it into an XmlDocument or XmlTextReader, for example, by
providing a remote URL in the constructor. See this article for a demo:
http://aspnet.4guysfromrolla.com/articles/031903-1.aspx

Or you can pull it down locally using the WebClient class. For
information on grabbing remote content over an HTTP request from an
ASP.NET page (such as an XML file), check out:
http://www.4guysfromrolla.com/webtech/070601-1.shtml

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top