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?

Re: Displaying HTML/XHTML from source XML file by Cerebrus

Cerebrus
Fri Apr 07 15:21:16 CDT 2006

Hi,

Have you considered XSL / XSLT ?

<http://www.w3schools.com/xsl/xsl_languages.asp>

Regards,

Cerebrus.


Re: Displaying HTML/XHTML from source XML file by psid

psid
Mon Apr 10 11:19:56 CDT 2006

The XML file contents shall be changing at design time and can it shall
be having nested constructs like nested if, nested for and nested
foreach. In such a case how shall you apply an xslt that needs to
display these nested constructs as html output with proper indentations


RE: Displaying HTML/XHTML from source XML file by guybar

guybar
Tue Apr 11 04:33:02 CDT 2006

You should create an html/xhtml file that will use an xsl file to format the
xml file and display it. Look at the XML Transform method in the MSDN for
example.
--
GuyBar


"psid" wrote:

> 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?
>
>