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

Discussion in 'ASP .Net Web Services' started by Vinay Prasad via .NET 247, Sep 15, 2004.

  1. 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,
    --------------------------------
    From: Vinay Prasad

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>mHKc4cytjkSxf2Z+01n4LQ==</Id>
    Vinay Prasad via .NET 247, Sep 15, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gordz
    Replies:
    3
    Views:
    3,932
    John Oakes
    Jun 7, 2004
  2. Markus
    Replies:
    1
    Views:
    1,522
    Markus
    Nov 23, 2005
  3. Abhinav
    Replies:
    6
    Views:
    1,068
    Abhinav
    Aug 16, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,245
    Stanimir Stamenkov
    Apr 25, 2005
  5. Replies:
    3
    Views:
    2,830
Loading...

Share This Page