This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Can someone please help me with Apache Velocity package? For our webapplication we are required to generate to generate XML file for certain data. My senior developer suggested we use Apache's Velocity package to do so. Now i was trying to post few faqs on apache site but most links are broken so can some one please help me here.
First of all where do I place my template file in the webapp?
Any help or direction to working with Velocity would be greatful, also if you think there is better and easier way to generate xml files in java please do suggest. Thanks in advance. [ February 16, 2007: Message edited by: Romi Dave ]
Abdulla Mamuwala
Ranch Hand
Joined: Jan 09, 2004
Posts: 225
posted
0
how about the JAX-B API. You have the schema with you now you can generate the XML document.
By any chance are you using Hibernate. If so you can map you classes also to XML and when you create a session you can set the session's EntityMode to the mode that can generate the XML. Kind of nice.
No I am not using Hibernate. Basically my requirement is, I need to generate XML file for some data fields on my page and then that XML file would be used in other application.
I highly recommend using JDom then. It is easy to create an XML object with Java OO, then one command generates the XML from that object model of the xml.
Good Luck
Mark
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.