Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Displaying HTML/XHTML from source XML file

From: "Joe Fawcett" <joefawcett@---------.------>
To: 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 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent