File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
XML and Related Technologies
Create XML string From Arraylist in Java
Joined: Jul 30, 2013
Jul 31, 2013 00:17:43
I want to create an XML
from data retrieved from the database in a
Can I do so by using Collection
If yes then how?
Joined: Jul 29, 2008
Jul 31, 2013 00:59:30
Yes, and it doesn't matter if it is an
or any other data structure populated with the contents you want to write to XML. Read
for a list of APIs you can use to read/write XML contents.
Author of ExamLab
- a free SCJP / OCPJP exam simulator
My Home Page
How to Ask a Question
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 31, 2013 07:21:18
Recall that XML is just text with a strict format requirement so you can create an XML document with simple println() statements if you want to.
Java Resources at
I agree. Here's the link:
subject: Create XML string From Arraylist in Java
Java and XSLT
JDOM - need help ... simple problem driving me insane
ArrayList of ArrayList<String>
Doubts regarding ArrayLists
How do you create an array of typesafe-collections?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014