Results 1 to 3 of 3
Thread: Xml File generation - xstream
- 07-29-2009, 02:18 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 3
- Rep Power
- 0
Xml File generation - xstream
i need to build the xml file from database resultset
- <chart caption="Country Comparison" shownames="1" showvalues="0" decimals="0" numberPrefix="$">
- <categories>
<category label="Austria" />
<category label="Brazil" />
<category label="France" />
<category label="Germany" />
<category label="USA" />
</categories>
- <dataset seriesName="1996" color="AFD8F8" showValues="0">
<set value="25601.34" />
<set value="20148.82" />
<set value="17372.76" />
<set value="35407.15" />
<set value="38105.68" />
</dataset>
- <dataset seriesName="1997" color="F6BD0F" showValues="0">
<set value="57401.85" />
<set value="41941.19" />
<set value="45263.37" />
<set value="117320.16" />
<set value="114845.27" />
</dataset>
- <dataset seriesName="1998" color="8BBA00" showValues="0">
<set value="45000.65" />
<set value="44835.76" />
<set value="18722.18" />
<set value="77557.31" />
<set value="92633.68" />
</dataset>
</chart>
i thought of using xstream is there any other good tools or api availble comparingly with xstream?
- 07-30-2009, 03:21 AM #2
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Tried W3C DOM?
You can create an xml file and write it out using the w3cDOM package. It has methods to insert child nodes and such. Also, an xml file is ultimately just a text file, so if you can handle maintaining the structure yourself, it can just be done w/ a string writer.
- 08-03-2009, 07:55 PM #3
Member
- Join Date
- Aug 2009
- Location
- Kharkov, Ukraine
- Posts
- 29
- Rep Power
- 0
Similar Threads
-
War file generation
By vislawath.jawaharlal in forum Threads and SynchronizationReplies: 0Last Post: 04-07-2009, 01:12 PM -
Storing and Retrieveing Data Using XStream & xml Files
By geeeeky.girl in forum New To JavaReplies: 0Last Post: 01-04-2009, 10:24 PM -
EJB generation with xdoclet tags
By gugas in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 02-18-2008, 01:07 PM -
random generation
By carlos123 in forum New To JavaReplies: 10Last Post: 01-09-2008, 03:43 AM -
String generation
By codingisfun22 in forum Advanced JavaReplies: 3Last Post: 12-03-2007, 05:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks