Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Displaying HTML/XHTML from source XML file >Thread Next - Re: Displaying HTML/XHTML from source XML file Re: Displaying HTML/XHTML from source XML fileTo: NULL Date: 4/8/2006 12:49:00 PM "psid" <siddharth.phatarphod@g...> wrote in message news:1144428228.043176.226830@j...... > Displaying HTML/XHTML from source XML file > > i am having an xml file > i want to display the contents of the xml file in a web browser control > in winforms > however i want to display it as html/xhtml after applying formatting. > how can this be done? > You could save the transformation to a temporary file and point the webbrowser control at this, this is essentially what IE does, it downloadsa resource to the temporary internet files folder and then displays it. You could also use the document object and write the transformed string to the webbrowser. It is possible to point the webbrowser control at an in memory representation of an HTML document but the examples online are all in C++ and require a lot of coding, it's way past my ability to explain how to do this. http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/tutorials/webocstream.asp?frame=true -- Joe Fawcett - XML MVP https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
