Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

deserialize xml into object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
param@community.nospam - 21 Nov 2005 15:38 GMT
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] - 22 Nov 2005 05:23 GMT
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

Signature

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


--------------------
| From: <param@community.nospam>
| Subject: deserialize xml into object
[quoted text clipped - 10 lines]
| 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
|
[quoted text clipped - 3 lines]
|
| TIA!
param@community.nospam - 24 Nov 2005 14:25 GMT
Thanks for the Link. Will check it out.

> Hi Param,
>
[quoted text clipped - 48 lines]
> |
> | TIA!
Steven Cheng[MSFT] - 24 Nov 2005 14:58 GMT
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

Signature

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


--------------------
| From: <param@community.nospam>
| References: <uDywwGr7FHA.2444@TK2MSFTNGP10.phx.gbl>
<xNZHgTy7FHA.3764@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: deserialize xml into object
| Date: Thu, 24 Nov 2005 08:25:17 -0600
[quoted text clipped - 9 lines]
| 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
|
[quoted text clipped - 12 lines]
| >
| > #XmlSerializer.Deserialize Method

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
| > frlrfsystemxmlserializationxmlserializerclasstopic.asp
| >
[quoted text clipped - 35 lines]
| > |
| > | TIA!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.