deserialize xml into object

G

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!
 
S

Steven Cheng[MSFT]

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: <[email protected]>
| 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: <[email protected]>
| 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!
|
|
|
 
S

Steven Cheng[MSFT]

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: <[email protected]>
| References: <[email protected]>
<[email protected]>
| 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: <#[email protected]>
| 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.
|
| | > 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: <[email protected]>
| > | 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: <[email protected]>
| > | 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!
| > |
| > |
| > |
| >
|
|
|
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top