Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an xml filed named Favorites.xml. It is controlled through a winform called Favorites.cs. I can add and remove the urls from the Favorites.xml file but i want to be able to load the url into my webbrowser. I have tried many different ways but cant seem to get it to work. any suggestions would be appreciated. I understand that I can use xslt to make the links usable, I know how to do this traditionally but how do i load the xml into the browser by clicking a button? Plus when a new url is added or deleted the xsl stylesheet has to be updated as well how would this be done? I know how to make the link clickable but can xsl be updated with xml writer technique or would the file need to be manually updated? this would defeat the purpose if manual update would be required.
Posted
Updated 3-May-10 7:16am
v3

Just retrieve the URL from your data, and create a process object to "run" the url. It will fire up the default browser for you and automatically browse to the URL you ran.
 
Share this answer
 
If you want to transform the XML into a form such that it can be loaded into your control then you need a XSLT.

Form a XSL and transform the XML into the form that can be used as needed.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900