473,395 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Generating test data from an XML Schema

Hello

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.

It is of course easy to extract all the element names from a schema, but
I want more than that.

Motivation: I wish to create a subset of TeX/LaTeX that can be easily
translated into XML that validates against an existing schema. I also
want the input TeX to be fairly easy to author (so a simple mechanical
translation will not work).

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?

--
Jonathan
Sep 17 '08 #1
3 1892
On Sep 17, 5:29*am, Jonathan Fine <J.F...@open.ac.ukwrote:
Hello

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:
http://help.eclipse.org/help32/index.../tcrexxsd.html

As can XML IDEs such as Stylus Studio and XML Spy.

-- Mark.
Sep 17 '08 #2
Mark Thomas wrote:
>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:
http://help.eclipse.org/help32/index.../tcrexxsd.html

As can XML IDEs such as Stylus Studio and XML Spy.
Mark - thank you for this. The problem is that I'd like to sit quite
close to the schema and manipulate the generation of the test data.
(This is because a straight representation won't suit my needs.)

However, if I get the chance I'll look at these tools, in case they can
help me. Thank you for the suggestion.

--
Jonathan
Sep 17 '08 #3
Mark Thomas wrote:
On Sep 17, 5:29 am, Jonathan Fine <J.F...@open.ac.ukwrote:
>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:
http://help.eclipse.org/help32/index.../tcrexxsd.html

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.

Stefan
Sep 17 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
5
by: Jon Sequeira | last post by:
Does anyone know of a component or class that available for generating updategrams from custom business objects? Ideally I need something that parses a mapping schema, interrogates an object, and...
12
by: Martin_Hurst | last post by:
Has some one come up with a similar type script that could be used in a Postgresql database? The script below was created for a SQLServer database. Thx, -Martin ...
2
by: Usha Vas | last post by:
Hi, I had posted this question in donet.framework.adonet but thought it might make more sense here, so I apologize for the duplicate post. I have an XML schema with one of the elements (Sig)...
10
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate,...
1
by: eSapient | last post by:
I get the following error when I run the XML Schema Definition Tool on a XML schema: Error: Error generating classes for schema 'codeGeoFeatureType'. - Specified cast is not valid. The XSD...
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
2
by: mats_trash | last post by:
I've been doing some fairly extensive searching on this topic and have not yet found a solution that doesn't involve recoding the schema in some framework-specific xml and jumping through various...
2
by: olympus_mons | last post by:
Hi, I'm just discovering the power of xsd.exe, so maybe I'm doing something wrong. schema files describing requests and responses. So there is an extra xsd file for each response and each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.