Need a Schema definition in the XML generated by serialize()

  • Thread starter Vinay Prasad via .NET 247
  • Start date
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top