This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating XML Files in Batch

 
chintan ramavat
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,

does anybody have idea for creating XML files in BATCH like 100 files or 200 files for testing purpose.

Thanks
CR
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chintan,
The first step is to identify the format. For example, is it always the same format with certain values varying?
 
chintan ramavat
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Jeanne

Yes the format is gonna be the same the only thing which will be changed is the tag value that's all, which is pretty much obvious since it's for testing purpose. i would appreciate if you suggest anything in this regard.

thanks jeanne
CR
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chintan ramavat:
Yes the format is gonna be the same the only thing which will be changed is the tag value that's all, which is pretty much obvious since it's for testing purpose. i would appreciate if you suggest anything in this regard.

So could you just write a utility class that generates those 100 XML files to a specified location when you invoke a method like "generateTestDataInto(File dir)"?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic