Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...