[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Software to generate all valid XML instances from a XML schema

  • To: xml-dev@l...
  • Subject: Software to generate all valid XML instances from a XML schema
  • From: "Steve Betten" <foomanji@h...>
  • Date: Fri, 23 Apr 2004 14:55:05 -0400
  • Bcc:

xml monkey
Is there any software that can generate all valid XML instances from a 
specified XML schema?  The nearest I could find is "XML Monkey" on 
sourceforge.net, which hasn't released any code yet.

In my particular application, I am testing the XML import-export 
capabilities of a certain complex class of ours (call it class Foo).  I want 
to use this software (that I'm looking for) to generate all valid XML 
instances from our Foo.xsd, then instantiate a Foo and set its values by 
importing each XML instance, then exporting each resulting Foo instance to 
XML, and finally checking that the original XML instance is XML-equal to the 
XML that the Foo exported.

Clearly I'm over-generalizing when I require that the software generate "all 
valid XML instances" (per the schema), since that could easily be an 
infinite number of instances; even a totally finite schema can lead to a 
computationally unreasonable number of XML instances to test.  So more 
realistically I want the software to generate the boundary conditions: 
minOccurs, maxOccurs (if it's finite), and maybe 2-3 values in between.  If 
maxOccurs is unbounded, then I figure the software should generate something 
cases for minOccurs, minOccurs * 2, and minOccurs * 4, substituting 1 for 
minOccurs in the latter two cases when minOccurs is 0.

I appreciate anyone letting me know of software that already does this 
before I commit to writing it myself.  Thanks!

-Steve

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.