V
Vinay Prasad via .NET 247
I need a Schema definition in the XML generated by serialize()
I have generated a class which confirms to a schema definition using xsd.exe. Then I used
mySerializer.Serialize(myWriter,ucpClass); to generate the XML. The only problem is I need the Schema definition in my xml file... i.e
something like
<xs:schema id="ucpclass" targetNamespace="http://www.tempuri.org/ucpclass.xsd"
in the xml file.
Do I have to open the xml file and edit it or is there a way in which the serialize() function will do it for me.
Thanks and regards,
I have generated a class which confirms to a schema definition using xsd.exe. Then I used
mySerializer.Serialize(myWriter,ucpClass); to generate the XML. The only problem is I need the Schema definition in my xml file... i.e
something like
<xs:schema id="ucpclass" targetNamespace="http://www.tempuri.org/ucpclass.xsd"
in the xml file.
Do I have to open the xml file and edit it or is there a way in which the serialize() function will do it for me.
Thanks and regards,