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
Head First Android
this week in the
XML and Related Technologies
xml modification and generating a new one
Joined: Oct 06, 2008
Dec 17, 2009 05:56:26
I have one xml file like below
I wanted to create 100 xml files using some program with just one requirement, in my every new xml first name value should be increased by 1 always like next xml will have value <firstname> 002</firstname>
can any one suggest me in this regard.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Dec 17, 2009 07:28:34
Just do it with normal character output streams, no need to get fancy.
XML is not magic, if you just println() the tags and follow the XML rules you will get a valid document.
Joined: Oct 14, 2005
Dec 17, 2009 09:06:36
You want to create 100 XML files? Then split your problem into two parts:
(1) Find out how to create one XML file.
(2) Find out how to do something 100 times.
Combine the two into one and you're done.
I agree. Here's the link:
subject: xml modification and generating a new one
how to create xml file with forum content
Generating XML from template file.
someone pleasssseeee help !!!
How to modify XML file in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015