tags:

views:

168

answers:

2

What is the easiest way to convert xml to html? I have xml file coming to java class. There is few tags with content. I need to convert them into html. Is there any tools or libraries?

+1  A: 

Use XSLT to convert your XML into the desired XHTML.

You will probably find that the XHTML gets a lot simpler if you use CSS.

Thorbjørn Ravn Andersen
Note that the output doesn't have to be XHTML, though. Usually an XSLT processor is able to emit HTML as well.
Joey
+4  A: 

XML -> HTML is possible using XSLT

Here's an article on XSTL processing in Java

Bozho
How to do this from java class?
Artic
@Artic see my update
Bozho
Thanks. Appreciate you help.
Artic