using xml datasource with a dynamic xml output from a website

hi guys. need help regarding this problem. we're doing a project right now that gets the latest stocks info from a website. we're passing username, password, and a year into a querystring and the website will have an xml output. the problem is that the output looks something like this : http://www.info.net/xml/page.aspx?id=user&pass=23423&year=2006. i'm wondering how i could directly use this in the xmldatasource itself. any ideas?

 

0
foodforthesoul
1/30/2007 2:52:40 AM
asp.net.xml-datasource 7181 articles. 0 followers. Follow

1 Replies
547 Views

Similar Articles

[PageSpeed] 19

Hi

Use HttpWebRequest and HttpWebResponse class.

You can get xml string as output then you can do whatever you want(deal with xmldatasource).

Here is an article on How to use HttpWebRequest and HttpWebResponse in .NET:

http://www.codeproject.com/cs/internet/httpwebrequest_response.asp

Hope this helps.


NOTE:If you find my response contains a reference to a third party World Wide Web site, I am providing this information as a convenience to you.Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,Microsoft cannot make any representations regarding the quality,safety, or suitability of any software or information found there.
__________________________________________________

Sincerely,
Young Fang
Microsoft Online Community Support

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
0
Young
1/30/2007 8:17:11 AM
Reply:

Similar Artilces:

XML datasource from external website XML file
Hi all i need to extract some data into a page on my website, but the xml file is on different web server, not in our bunch, but out in the ether.is it possible to use this file as a datsource directly, or is there some security issue, and i have to grab it and use it locally...??? the file has been put somewhere it can be accessed with a web browseras this file changes on a daily basis, i would also like to automate the daily retrieval, i'm assuming this is something not too simple either. as you would need a service or something to fire up at a specific time each day?! any he...

XMl to XML
Hello,   I retrieved an XML from the dataset which retrieves data from the table in the database. I need to present the data  in a different structure. Is XSLT the way or are there any other options. please let me know. Thanks!! Yes XSLT is a good choice to convert xml file to other forms. You can take a look at XSLT Tutorial.Sincerely,Young Fang...

XML in, XML out
Hi All (and a happy holiday to those that will get a break), I am trying to read in an XML file of addresses. I need to remove all the address data from the file where code =~ /^000/ (there are none in the example data below). I need to reproduce that data 'as is', so I need to honour the tag structure, although the order of the tags doesn't need to be honoured. I have been trying to use XML::Simple and I had a go with XML::Smart but I haven't been able to get the results I want. My best effort is below (with XML::Simple). There are a couple of differences ...

How to get datasource name dynamically from .txt / .xml file using C#.net 2.0 with Mysql 5.0
I am using C#.Net 2.0 With MySql 5.0. I created a project and it works fine in my machine. But problem occurs when i try to run the project other than my machine. I wrote datasource=mysystem name in connection string. Is it possible to get datasource name dynamically from a text file (*.txt) or from .xml file for MySql.Regards,Tamizhselvi  Add an App.Config file to your project and you can drop a connection string in there like so:  <connectionStrings>    <add name="PICK A NAME" connectionString="YOUR CONNECTION STRING"/>...

reading data from xml service or xml datasource
Hi, I'm trying to figure out a way to import data (but not export to, I'm just trying to get their news section) from an external db (SqlServer 2000 or 2005) to a gridview and detailsview on my site (resides at a web host). I spoke to the organisation that owns the external db and they are willing to look into several solutions, whitout giving out their db password etc. Not suprisingly, I was reccomended using a web service. However, I believe I need to install stuff in order to enable one, and so, it won't be able for me (I guess), because of my web host's limitations. Instead, I am now t...

Using XML Schema Definition to output XML from a DataSet
Hi guys,I'm struggling with the concept of using an XSD to generate XML from a dataset.I don't want to use strongly typed datasets (in this instance) but I've been given an XSD to export data from our database in a specific format.Short of writing an XML writer myself, is there anyway to get ADO.NET to output data from our database into the format as defined by the XSD?I've tried DataSet.ReadXMLSchema(< XSD File >) and then DataSet.WriteXML but this doesn't exactly follow the XSD.I've tried to find more information on the topic but haven't had much luck.Any input would be gre...

xml to xml using xslt??
Hi, I've been trying to find a decent tutorial/explanation of how to transform one xml structure into another using xslt and output the result to a dataset but i have not been able to find any!. There are plenty that show how to convert xml to html and output as a .html file but none for xml to xml. Has anyone see or can recommend anything.. Thanks Have you tried the MSDN article: Real World XML: Manipulate XML Data Easily with the XPath and XSLT APIs in the .NET Framework? http://msdn.microsoft.com/msdnmag/issues/03/07/XPathandXSLT/ I'm pretty sure I got some code from it that I'm s...

XML to XML using XSLT
I have a XML doc that is being transformed to another XML format. I got this working. Now how do I write this XML (output) to a XMLWriter or string so that I can use a XmlDocument to load this XML and pass the object to a method in a different class. Thank you.  Hi devilsgrave , Try to use MemoryStream . See my sample,   System.Xml.Xsl.XslTransform RssXslt = new System.Xml.Xsl.XslTransform(); System.Xml.XmlDocument RssXml = new System.Xml.XmlDocument(); RssXslt.Load("TestDeep.xsl"); RssXml.Load("TestNodeDeep...

Using XML Explicit Mode output to file in XML format
Dear everyone, I want to build XML document from SQL Server 2000 data. I am using Visual Studio.NET to run the following XML query: select 1 as tag , 0 as parent, sid as [StaffID!1!ID!element], sname as [StaffID!1!Name!element] from roytest for xml explicit; How can I output the query results to file in XML formats by using VS.NET and C#.NET?? Where is the related websites or reference ?? Thanks much!!!! From, Roy ...

XML::Parser XML::DOM XML::XSLT
------_=_NextPart_001_01C6E0D0.3E27D77A Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi Craig and fellow VMS Perlers, You last wrote about this Fri 3/16/2001 11:24 AM, not counting your very helpful comments on Eisner/Decuserve more recently. One of my colleagues sent me an email requesting that I make XML::XSLT=20 available on VMS. perl 5.8.6, VMS 7.3-2, DECC 7.1 latest ACRTL (version 3) on Alpha XML::XSLT (version 0.48) depends on XML::Parser (version 2.34). This depends on expat (version 2.0.0). I built expat a...

How to create dynamic web form using XML Schema & XML and so on
Dear there; I have to build dynamic web form where i can design the form as i want, if you have an ideas about this field tell me as soon as possible, because i feel very frustration about that, The Microsoft Office InfoPath 2003 is available in this section. Hello Dear, I am also working on the same from a quite long time ? but did't get enough success. But i have created the form at run time as i want by storing from element in XMl file. and u can validate it by using XSLT or at code behind file as u want....

How to write a xml file to another computer using path like this \\Server5\XML\XMLTest.xml?
Hi Guys,How can I write a xml file that read from a dataset to another computer in our network?something like this path "\\Server5\XML\XMLTest.xml"I am using below code to write xml file.----------------------------------------            // create a file name to write to.            string filename = "\\Server5\XML\XMLTest.xml";            // create the FileStream to write with.        &nb...

Creating a xml file with just field names and then binding the xml fields to a datasource???
I have an xml file I created called ReportFields.xml which looks like this: <?xml version="1.0" encoding="utf-8" ?> <ReportFields><AccountNumber></AccountNumber <FirstName></FirstName><LastName></LastName> </ReportFields> I then create a blank crystal report and go into the Database Expert and choose ADO.NET DataSets, I browse to the xml file I just created, in this case ReportFields and give it a Class Name of ReportFields.  Now under Database Fields, I have a ReportFields table with the following columns: ...

How do i use datasource to generate xml?
 hi, i doing a project which make use of google map, How do i make my datasource to generate xml file so that the google map can read my data? If you have your data in a DataSet, you could use it's WriteXML method. Website Design Darlington - http://mdssolutions.co.ukhttp://lessthandot.com - Experts, Information, Ideas & Knowledgehttp://aspnetlibrary.com - An online resource for professional ASP.NET developersPlease remember to click "Mark as Answer" on this post if it helped you...

Web resources about - using xml datasource with a dynamic xml output from a website - asp.net.xml-datasource

Datasource - Wikipedia, the free encyclopedia
A DataSource object has properties that can be modified when necessary. For example, if the data source is moved to a different server, the property ...

Inverness Graham Acquires DataSource
Inverness Graham , a lower middle market private equity firm headquartered in suburban Philadelphia, has acquired DataSource , a print supply ...

SmartGlance for iPad for iPad on the iTunes App Store
Read reviews, get customer ratings, see screenshots, and learn more about SmartGlance for iPad on the App Store. Download SmartGlance for iPad ...

Chaitanya Pandit (@chaitanyapandit) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Data source - Wikipedia, the free encyclopedia
... Data source A data source is any of the following types of sources for (mostly) digitized data: a database in the Java software platform, datasource ...

2ndQuadrant - PostgreSQL expertise from specialists with a source code level understanding of RDBMS ...
PostgreSQL expertise from specialists with a source code level understanding of RDBMS PostgreSQL Planets Gabriele’s PlanetPostgreSQL Gianni’s ...

Tagged entries for CLOUD COMPUTING
Alan Williamson's output as a Java Champion, Blog-City Architect, BlueDragon Creator, Author, Speaker and Internet Guru

Private equity deals
... of biometric identity management systems, applications and services. www.crossmatch.com Inverness Graham Investment has acquired DataSource ...

C# C Sharp and Tutorials on C# Friends.com
Learn the c# langauge to build web applications using our online tutorials with live demos. Participate in our forums and learn from others. ...

JavaScript UI Library, Ajax Components & HTML5 Framework - DHTMLX
DHTMLX offers a rich JavaScript library, UI components & HTML5 mobile framework. Build impressive web apps for both desktop and mobile devices. ...

Resources last updated: 12/3/2015 4:48:41 PM