Hi
Is there an easy way to programmtically create an xsd-schema from an xml
file?
Reason .... I create slightly different xml documents in my app, based on
user data. I would like to create a temporary schema files from those xml
documents, in order to use the data in a UI grid. I found the XmlSchema
class, but it would be an overkill to create the schema through this class.
Thanks for any hints, Urs
Martin Honnen - 28 Sep 2006 17:18 GMT
> Is there an easy way to programmtically create an xsd-schema from an xml
> file?
.NET 2.0 has an InferSchema method of the XmlSchemaInference class in
System.Xml.Schema:
<http://msdn2.microsoft.com/en-us/library/ms162770.aspx>

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Urs - 28 Sep 2006 17:33 GMT
Thanks Martin, that's exactly it.
Urs
>> Is there an easy way to programmtically create an xsd-schema from an xml
>> file?
>
> .NET 2.0 has an InferSchema method of the XmlSchemaInference class in
> System.Xml.Schema:
> <http://msdn2.microsoft.com/en-us/library/ms162770.aspx>