Generating test data from an XML Schema

Stefan Behnel stefan_ml at
Wed Sep 17 21:17:13 CEST 2008

Mark Thomas wrote:
> On Sep 17, 5:29 am, Jonathan Fine <J.F... at> wrote:
>> I want to generate test data from an XML schema.  I've had a quick look
>> at existing tools (such as minixsv and amara) but from what I've seen
>> they don't seem to help.
> ...
>> A tool that provides a nice Python interface to navigating the schema
>> would probably be quite helpful.
>> Has anyone seen anything that might help generate test data from a schema?
> I'm unaware of anything in Python, but Eclipse can generate sample
> documents from a schema:
> As can XML IDEs such as Stylus Studio and XML Spy.

There's also a Java tool called the "XML instance generator" by Sun that
supports XML Schema and RelaxNG. It's a bit tricky to find as most links to it
are broken by now.


More information about the Python-list mailing list