-3

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?

2 Answers 2

3

XML -> HTML is possible using XSLT

Here's an article on XSTL processing in Java

1
1

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.

1
  • Note that the output doesn't have to be XHTML, though. Usually an XSLT processor is able to emit HTML as well.
    – Joey
    Mar 16, 2010 at 14:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.