deserialize xml into object

Discussion in 'ASP .Net Web Services' started by Guest, Nov 21, 2005.

  1. Guest

    Guest Guest

    Hi all, is there anyway I can de-serialize XML back into my custom object in
    VB? I am supposed to receive serialized XML via a https post and it would be
    nice if I can de-serialize it and then work with the object rather than XML.

    TIA!
    Guest, Nov 21, 2005
    #1
    1. Advertising

  2. Hi Param,

    Welcome to ASPNET newsgroup.
    As for the deserializing xml into object question. I'm not sure how did you
    used to generate those XML document? Are you using the .NET's XmlSerializer
    class? If so, we can also use the XmlSerializer class to deserialize xml
    content into .net class instances. The XmlSerializer can be used in both
    C# or VB.NET ....

    #XmlSerializer.Deserialize Method
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
    frlrfsystemxmlserializationxmlserializerclasstopic.asp

    Regards,

    Steven Cheng
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)




    --------------------
    | From: <>
    | Subject: deserialize xml into object
    | Date: Mon, 21 Nov 2005 09:38:56 -0600
    | Lines: 7
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
    | X-RFC2646: Format=Flowed; Original
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
    | Message-ID: <>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
    | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
    | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
    | Xref: TK2MSFTNGXA02.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservices:30929
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
    |
    | Hi all, is there anyway I can de-serialize XML back into my custom object
    in
    | VB? I am supposed to receive serialized XML via a https post and it would
    be
    | nice if I can de-serialize it and then work with the object rather than
    XML.
    |
    | TIA!
    |
    |
    |
    Steven Cheng[MSFT], Nov 22, 2005
    #2
    1. Advertising

  3. Guest

    Guest Guest

    Thanks for the Link. Will check it out.

    "Steven Cheng[MSFT]" <> wrote in message
    news:...
    > Hi Param,
    >
    > Welcome to ASPNET newsgroup.
    > As for the deserializing xml into object question. I'm not sure how did
    > you
    > used to generate those XML document? Are you using the .NET's
    > XmlSerializer
    > class? If so, we can also use the XmlSerializer class to deserialize xml
    > content into .net class instances. The XmlSerializer can be used in both
    > C# or VB.NET ....
    >
    > #XmlSerializer.Deserialize Method
    > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
    > frlrfsystemxmlserializationxmlserializerclasstopic.asp
    >
    > Regards,
    >
    > Steven Cheng
    > Microsoft Online Support
    >
    > Get Secure! www.microsoft.com/security
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >
    >
    >
    >
    > --------------------
    > | From: <>
    > | Subject: deserialize xml into object
    > | Date: Mon, 21 Nov 2005 09:38:56 -0600
    > | Lines: 7
    > | X-Priority: 3
    > | X-MSMail-Priority: Normal
    > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
    > | X-RFC2646: Format=Flowed; Original
    > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
    > | Message-ID: <>
    > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
    > | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
    > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
    > | Xref: TK2MSFTNGXA02.phx.gbl
    > microsoft.public.dotnet.framework.aspnet.webservices:30929
    > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
    > |
    > | Hi all, is there anyway I can de-serialize XML back into my custom
    > object
    > in
    > | VB? I am supposed to receive serialized XML via a https post and it
    > would
    > be
    > | nice if I can de-serialize it and then work with the object rather than
    > XML.
    > |
    > | TIA!
    > |
    > |
    > |
    >
    Guest, Nov 24, 2005
    #3
  4. You're welcome Param,

    If there're anything else unclear or need help, please feel free to post
    here.

    Thanks,

    Steven Cheng
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    --------------------
    | From: <>
    | References: <>
    <>
    | Subject: Re: deserialize xml into object
    | Date: Thu, 24 Nov 2005 08:25:17 -0600
    | Lines: 65
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
    | X-RFC2646: Format=Flowed; Original
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
    | Message-ID: <#>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
    | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
    | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
    | Xref: TK2MSFTNGXA02.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservices:30953
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
    |
    | Thanks for the Link. Will check it out.
    |
    | "Steven Cheng[MSFT]" <> wrote in message
    | news:...
    | > Hi Param,
    | >
    | > Welcome to ASPNET newsgroup.
    | > As for the deserializing xml into object question. I'm not sure how did
    | > you
    | > used to generate those XML document? Are you using the .NET's
    | > XmlSerializer
    | > class? If so, we can also use the XmlSerializer class to deserialize
    xml
    | > content into .net class instances. The XmlSerializer can be used in
    both
    | > C# or VB.NET ....
    | >
    | > #XmlSerializer.Deserialize Method
    | >
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
    | > frlrfsystemxmlserializationxmlserializerclasstopic.asp
    | >
    | > Regards,
    | >
    | > Steven Cheng
    | > Microsoft Online Support
    | >
    | > Get Secure! www.microsoft.com/security
    | > (This posting is provided "AS IS", with no warranties, and confers no
    | > rights.)
    | >
    | >
    | >
    | >
    | > --------------------
    | > | From: <>
    | > | Subject: deserialize xml into object
    | > | Date: Mon, 21 Nov 2005 09:38:56 -0600
    | > | Lines: 7
    | > | X-Priority: 3
    | > | X-MSMail-Priority: Normal
    | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
    | > | X-RFC2646: Format=Flowed; Original
    | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
    | > | Message-ID: <>
    | > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
    | > | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
    | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
    | > | Xref: TK2MSFTNGXA02.phx.gbl
    | > microsoft.public.dotnet.framework.aspnet.webservices:30929
    | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
    | > |
    | > | Hi all, is there anyway I can de-serialize XML back into my custom
    | > object
    | > in
    | > | VB? I am supposed to receive serialized XML via a https post and it
    | > would
    | > be
    | > | nice if I can de-serialize it and then work with the object rather
    than
    | > XML.
    | > |
    | > | TIA!
    | > |
    | > |
    | > |
    | >
    |
    |
    |
    Steven Cheng[MSFT], Nov 24, 2005
    #4
    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. Replies:
    3
    Views:
    626
  2. pico77
    Replies:
    1
    Views:
    3,270
  3. Edmond wong
    Replies:
    2
    Views:
    5,963
    Edmond wong
    Apr 29, 2005
  4. moonhk
    Replies:
    4
    Views:
    708
  5. hardemr
    Replies:
    3
    Views:
    304
Loading...

Share This Page