I googled many Java API’s to parse the xml into HTML but confused from where I start. I never did any xml to html parsing task. This is ouput of resume parsing 3rd party in shape of xml data and I have to transform it into html.
Best regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no “parse to html”, maybe you mean “transform to html”, in that case take a look at XSLT.
XSLT is a language (written in XML itself) to transform XML to another XML, and XHTML happens to be an XML, so using XSLT you can transform from one to another.
As for the Java library to use, you can use directly classes in the JRE, namely javax.xml.transform.TransformerFactory and related classes. Otherwise you can use XALAN directly (see http://xalan.apache.org) or SAXON, or Cocoon 3 (http://cocoon.apache.org) which makes parsing, transforming and saving the result file transparent.