ColdFusion xmlTransform() equivalent in Java



In Coldfusion 9.0 we can use XmlTransform() function to transform XML(string or XML object) into string containing the results of applying the XSLT to the XML. Is there any equivalent method in Java. If not what I have to do to convert my XML string like



<requests>
<request>
<query id="100">What is your full name</query>
<answer id="111">Test User</answer>
<new-answer>Beta User</new-answer>
</request>
<request> .... </request>
....
</requests>


to HTML using my predefine XSLT?


Thanks.


No comments:

Post a Comment