Is it possible to generate an XML schema from XML data?
Yes, that is possible, most XML editors can do that for you.
The .NET framework SDK also has a tool xsd.exe that can do that for
your, see
<URL:http://msdn2.microsoft .com/en-us/library/x6c1kb0s(VS.80) .aspx>
The .NET framework also has a class so that you can do it
programmaticall y in your .NET application:
<URL:http://msdn2.microsoft .com/en-us/library/system.xml.sche ma.xmlschemainf erence.aspx>
Downloaded "Liquid XML Studio (Freeware)" but it keeps bombing out
when I try generate the schema. Will have a look for something else.
We've not really adopted .net at this site as yet, in fact most of our
systems are "legacy". I have VS 2005 but am looking for just a quick
win on generating this schema so I can load the data into sql server.
My boss seems to think a 4GL dating from the 1990s is the best way to
consume this data feed.... Argh!!!
Regards
Dave
On Tue, 15 Apr 2008 15:45:39 +0200, Martin Honnen <mahotrash@yaho o.de>
wrote:
>David Gray wrote:
>Is it possible to generate an XML schema from XML data?
>
>Yes, that is possible, most XML editors can do that for you.
>The .NET framework SDK also has a tool xsd.exe that can do that for
>your, see
><URL:http://msdn2.microsoft .com/en-us/library/x6c1kb0s(VS.80) .aspx>
>The .NET framework also has a class so that you can do it
>programmatical ly in your .NET application:
><URL:http://msdn2.microsoft .com/en-us/library/system.xml.sche ma.xmlschemainf erence.aspx>
Is it possible to generate an XML schema from XML data?
There have been many tools which attempted this. It isn't hard to
generate a schema which will validate the sample data. It's
significantly harder to generate a schema which *correctly* models all
the possible variations of the data, if the samples don't cover all of
them (and usually they don't). Generally, these tools will need human
assistance before you'll have a schema that's actually worth using.
Comment