java - Convert XML document render to hard-code as HTML -


i have requirement publish html file xml file html file show hard-coded values specific point in time present on xml file (i.e. independent of xml changes after html doc created).

example: xml file

<dvd>   <name>titanic</name>   <price>10</price> </dvd> <dvd>   <name>avatar</name>   <price>12</price> </dvd> 

now need convert these html document whereby values hardcoded html

example html file

<html> <body> <h1>dvd list</h1> <table>   <tr ...>   <th>name</th><th>price</th>   <td>titanic</td><td>10</td>   <td>avatar</td><td>12</td> 

i have tried using xslt provides render of xml document updated according xml changes. require point-in-time html document referring values on xml.

perhaps there easy way existing technologies, or simple custom java code?

it looks didn't search hard enough answer on stackoverflow here: how convert xml html using xslt in java


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -