XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Yitzhak KhabinskySubject: how to generate XML from XSD?
Author: Yitzhak Khabinsky
Date: 21 Sep 2004 07:49 AM
Hi,

I need to generate sample XML file from the existing XSD file.
I wonder what is the best way to accomplish this using Stylus Studio.

In XMLSpy, you can just open the XSD file and generate sample XML.
The XMLSpy asks several questions such as:
- generate non-mandatory attributes/elements?
- generate first choice of mandatory choice?
- how many elements if marked repeatable in schema?
- etc.

Thank you in advance,
Yitzhak

Postnext
Minollo I.Subject: Re: how to generate XML from XSD?
Author: Minollo I.
Date: 21 Sep 2004 09:40 AM
You can generate a sample XML file given an XML Schema in two possible ways:

- File | Document Wizards...; select "XML Schema to XML"
- Create a new XML document and choose "XML | Associate XML with Schema"

Minollo

Postnext
Yitzhak KhabinskySubject: Re: how to generate XML from XSD?
Author: Yitzhak Khabinsky
Date: 21 Sep 2004 09:57 AM
Hi,

Thanks for such a quick response!

I was looking for it in the SS help and couldn't find it.
I tried something along those lines:
- generate xml from schema
- generate xml from XSD

Probably, one more area to improve to put this option
under XMLSchema menu option.

Thanks again,
Yitzhak

Postnext
Peter LarbalestierSubject: Re: how to generate XML from XSD?
Author: Peter Larbalestier
Date: 21 Sep 2004 05:46 PM
Yes the SS Help is quite appalling to say the least.

Peter

Postnext
Minollo I.Subject: Re: how to generate XML from XSD?
Author: Minollo I.
Date: 21 Sep 2004 06:18 PM
I think you are being a bit unfair to our online documentation. But there
is no doubt that it can be improved in many ways, and, also thanks to all
the good feedback we receive on this forum, we constantly work to make it
better.

Thanks for your help,
Minollo

Posttop
David JaramilloSubject: Re: how to generate XML from XSD?
Author: David Jaramillo
Date: 20 Oct 2004 07:59 AM
Yes, an xml file can be generated via the mentioned methods,
but unfortunately the result is not a valid XML document with respect to the used XMl Schema,
because most values are empty. I would a better support for this if Stylus Studio would generate dummy values
for the corresponding data types, taking into account the constraints defined in
the XML Schema; i.e. ID values must be unique, etc.
In XMLSpy this is supported to some extent, But I expect Stylus Studio to do
a better job ;-).

This in my opinion a very important feature in XML Schema design.

Best regards,
David

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

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