Connecting Tech Pros Worldwide Forums | Help | Site Map

Random xml generation for testing server

Newbie
 
Join Date: Aug 2009
Posts: 8
#1: Sep 23 '09
Hi guys,
How can I generate xml files randomly from a schema definition file.
Currently I have an xsd, which I insatantiate each time to generate an xml.
My requirement is to generate xml randomly such that fields in the xml conform to the xsd. Is it possible? Is there any java library which will help me do that?

I am using jaxb right now, which lets me generate xml for an xsd. But for this I need to feed value for every single time. Is it possible that a specify range of values in the xsd ans "some java library" generates xml with values within this range.
Any help will be appreciated.
Thanks in advance.

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,662
#2: Sep 23 '09

re: Random xml generation for testing server


I don’t know, if there’s such a library, but I guess rather not. The guys over at the java forum should know more.
Reply

Tags
generate, java, random, xml. xsd