473,804 Members | 4,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1917
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
9281
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
5
1896
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 produces an updategram. Any suggestions are welcome. Thanks. Jon
12
2516
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 ++++++++++++++++++++++++++++++++++++++ http://searchdatabase.techtarget.com/tip/1,289483,sid13_gci913717,00.html In the early stages of application design DBA or a developer creates a data
2
3691
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) having an attribute defined as such: <xs:element name="Sig" nillable="true" minOccurs="0" maxOccurs="unbounded"> <xs:complexType>
10
1968
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, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
1
2422
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 in question is: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
1
2865
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 types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
2
4267
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 other hoops. Is there not some web-2.0-framework-publishing-(non)-bells-and-whistles-technology that will take a valid XML Schema and create either an XForm or standard HTML form, publish it, and then validate the subsquent data submission...
2
4131
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 request as well as some base schemas, i.e. defining a data type for a result element. Among others this result element contains a simple enumeration type "ResultState" which can either be "OK" or "FAILED".
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.