Subject:Creating Schema from XML Author:Udo Borkowski Date:19 Aug 2003 05:53 AM
Stylus Studio has the nice feature that it can create an XMLSchema from an XML file (with some kind of guessing at the application's side).
Is there a way to automatically generate such an XMLSchema not based on just one XML file but with several XML files as input? For all these XML files the same XMLSchema should apply. So the "generated" XMLSchema would need to consider all XML files, and all these XML files must be valid with respect to the XMLSchema. E.g. this would typically lead to some kind of "union" on all tags used in the files, some more "choices", less "required" attributes etc.
Or does some (external) tool exist that accomplished that task?
Subject:Re: Creating Schema from XML Author:(Deleted User) Date:19 Aug 2003 06:10 AM
At 12.16 19/08/2003, stylus-studio-tech Listmanager wrote:
>From: "Udo Borkowski"
>[...]
>Is there a way to automatically generate such an XMLSchema not based on
>just one XML file but with several XML files as input? For all these XML
>files the same XMLSchema should apply. So the "generated" XMLSchema would
>need to consider all XML files, and all these XML files must be valid with
>respect to the XMLSchema. E.g. this would typically lead to some kind of
>"union" on all tags used in the files, some more "choices", less
>"required" attributes etc.
>
>Or does some (external) tool exist that accomplished that task?
You can try using TRANG directly, the utility from Thai Open Source
Software Center that we bundle. You can find it in the
[StylusDir]\bin\trang directory.
A sample command line could be:
Subject:Re: Creating Schema from XML Author:Lee Humphries Date:19 Aug 2003 07:15 PM
Hi Alberto,
How about adding this as a document wizard? I find the process of creating an XSD from an XML instance a little tedious and frankly somewhat obscure. When I haven't done it for a while a always have to hunt around around until I remember what to do.
Adding a document wizard to call trang with a list of one or more XML documents would be fantastic.
Subject:Re: Creating Schema from XML Author:Minollo I. Date:19 Aug 2003 07:30 PM
You can actually create your own custom document wizard (v5.0); take a look
at the "DTD to XML Schema" wizard in Stylus: that's based on Trang and is
configured as a custom document wizard.
Subject:Re: Creating Schema from XML Author:b pankey Date:18 May 2006 01:16 PM
I am a newbee. I want to create a schema doc from an xml data file. Unfortunatly, how this is done, other than by hand coding, is unclear to me. So, from what I have been reading on this string, it appears that stylus studio can do this. How.