import clr namespace into schema

LostProgrammer

Well-known member
Joined
Jan 17, 2003
Messages
123
I want to reference a CLR type in an xsd file.
Is there someway to reference the schema that would contain the the type?
Is it available @ schemas.microsoft.com?

something like:

<xs:schema id="Schema1"
xmlns:data="http://tempuri.org/Data.xsd"/>
<xs:import schemaLocation="Data.xsd" namespace="http://schemas.microsoft.com/clr/nsassem/System.Data" />


<xs:element name="Command" type="data:SqlCommand"/>

any thoughts, ideas, leads appreciated.
Thanks

-lp
 
Generate XSD for CLR Type

write xsd using xsd.exe - works for any type that implements IXMLSerializable

xsd System.Data.dll /t:DataSet

nothing like trying to make things more complicated that they need to be.
-lp
 
Back
Top