Generate XML file from Java

K

Kai Grossjohann

I have a custom XML format (DTD), and I would like to generate XML
files from Java. I investigated Jakarta ECS which has a nice API, but
it won't pretty-print -- there are no newlines in the output.

Any suggestions?

Kai
 
J

jlp

Kai said:
I have a custom XML format (DTD), and I would like to generate XML
files from Java. I investigated Jakarta ECS which has a nice API, but
it won't pretty-print -- there are no newlines in the output.

Any suggestions?

Kai
Transform the XML file without newline with XSLT ( Xalan for example)
to a final XML file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,270
Latest member
TopCryptoTwitterChannels_

Latest Threads

Top