A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
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
Doubts regarding ArrayLists
JDOM - need help ... simple problem driving me insane
Java and XSLT
ArrayList of ArrayList<String>
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