Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Hi All,
how to convert xml file to html file in c#?
Posted
Updated 30-Nov-15 22:59pm
v2
Comments
Tomas Takac 1-Dec-15 5:00am    
Can you be more specific? What are you trying to do?
_Asif_ 1-Dec-15 6:46am    
What have you tried so far?
Tejas Vaishnav 1-Dec-15 8:55am    
And also what type of xml you have to convert it to html? and what is desired output of html (any format specified for html)?
[no name] 1-Dec-15 9:55am    
You can do it with XML/XSLT Transformation. But can you add more details on your requirement here?
yeleswarapu ramakrishna 1-Dec-15 16:56pm    
use xslt to transform xml to html data

As suggested in the comment section XSL and XSLT is the way to go.

This is a good place to start W3Schools: XSLT Tutorial[^]
Quote:
XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents.

XSLT stands for XSL Transformations. In this tutorial you will learn how to use XSLT to transform XML documents into other formats, like XHTML.


These links shows how to do it in c# code
XSLT Transformations[^]
How to: Perform an XSLT Transformation by Using an Assembly[^]
 
Share this answer
 
v2
 
Share this answer
 
Comments
George Jonsson 2-Dec-15 1:18am    
A little outdated article. XslTransform has been deprecated and replaced by XslCompiledTransform.

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