Connecting Tech Pros Worldwide Forums | Help | Site Map

Random generation of xml

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.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,714
#2: Sep 24 '09

re: Random generation of xml


Please do not double post your questions in this forum. This is explicitly forbidden by our rules, as it can cause a horrible mess and takes time & effort to clear up.
Reply

Tags
generate, java, random, xml, xsd