all groups > dotnet xml > january 2007 >
You're in the

dotnet xml

group:

How to Generate XSD from an XML


How to Generate XSD from an XML zakkar NO[at]SPAM gmail.com
1/26/2007 6:57:18 AM
dotnet xml:
Hello ,

I am trying to extract from an xml file all the attributes and the data
and create an XSD file which will match with my xml. I am using .NET
VB. Does anyone Know how to do it ? Does anyone has a sample code of
creating the XSD file ,simply by having the XML ?

I do not want to use a xsd.exe or any other tool available on the net.
I need script code in .NET VB

I would mostly appreciate your help

Thank you
Re: How to Generate XSD from an XML Martin Honnen
1/26/2007 4:11:49 PM
[quoted text, click to view]

With .NET 2.0 it is possible, use the InferSchema method of the
XmlSchemaInference class
<http://msdn2.microsoft.com/en-us/library/system.xml.schema.xmlschemainference.inferschema.aspx>


--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button