Produce HTML output with XML-File

Hello,

I want to create a output-file of the following XML-File:

<?xml version="1.0" encoding="UTF-8"?>

<books>

<book language="english">

<title>Der Zerbrochene Krug</title>

<author>Heinrich v. Kleist</author>

<price>40</price>

</book>

<book language="german">

<title>Der Talismann</title>

<author>Johann Nestroy </author>

<price>30</price>

</book>

<book language="english">

<title>Ein Kind</title>

<author>Thomas Bernhard</author>

<price>60</price>

</book>

</books>

I use jdom and know how to read a XML-File with JDom but I do not know how to create then a html-output-file. I want to have a html-table in the output-file with the column-names, title, author, price and the data as rows. I don't want to use a XSL-Stylesheet.

Can anybody here give me some hints how to realize that? :-/

regards

Message was edited by:

patrick270881

[1282 byte] By [patrick270881a] at [2007-10-3 5:21:53]
# 1
The straightforward and flexible solution would be to use XSLs. Otherwise you can try using the javax.swing.text.html package.
attilaracza at 2007-7-14 23:28:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...