Click here to Skip to main content
12,761,248 members (31,062 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# XML
Please help me
if you have an xml contents(or file ie yahoo weather service result)
,how to load it as a web page not xml contents in web browser in c# windows application
Posted 16-Nov-12 0:56am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Have you examined closely the XML result of a Yahoo Weather RSS feed in response to a query ?

For example: [^]

You will see that the XML includes a link to an HTML representation in the Yahoo format. Look at the <link> node under the Item sub-node under the root-node "Channel:"
  <title>Conditions for Sunnyvale, CA at 9:38 am PST</title>
So parse the XML (either via the DOM, or just plain old file-searching, or string searching), extract the HTML link, do a "get" on that link, and then re-use the HTML returned.

Now, if your purpose is to extract the data in a Yahoo Weather RSS XML response, and present it in your own HTML format: that's another problem. For that, you can either construct your own XSLT transform, or parse the file yourself, extracting what you need, and generating custom HTML.

In either case you should follow the Yahoo guidelines for attribution, found in the first link given in this answer under "Terms of Service."
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Web pages are using HTML. You can use XSLT to transform XML in HTML then load the HTML.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100