Random generation of xml

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • javatoil260309
    New Member
    • Aug 2009
    • 8

    Random generation of xml

    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.
    Last edited by Frinavale; Sep 23 '09, 11:07 PM. Reason: Merged duplicate threads.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32636

    #2
    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.

    Comment

    Working...