This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Testing and the fly likes creating XML Files in Batch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "creating XML Files in Batch" Watch "creating XML Files in Batch" New topic
Author

creating XML Files in Batch

chintan ramavat
Ranch Hand

Joined: Sep 15, 2006
Posts: 134
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Chintan,
The first step is to identify the format. For example, is it always the same format with certain values varying?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
chintan ramavat
Ranch Hand

Joined: Sep 15, 2006
Posts: 134
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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)"?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating XML Files in Batch
 
Similar Threads
regarding JAR files
batch files in struts projects
batch file
Need to run 3 .bat files using JAVA
Creating 8 MILLION XML files faster