LostProgrammer Posted January 12, 2007 Posted January 12, 2007 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 Quote
LostProgrammer Posted January 17, 2007 Author Posted January 17, 2007 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.