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 / .NET Framework / Compact Framework / June 2007

Tip: Looking for answers? Try searching our database.

Deserialize xml object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fjvela@gmail.com - 27 Jun 2007 14:22 GMT
Hello,

how can I deserialize a xml object with the compact framework 1?

Thanks!
<ctacke/> - 27 Jun 2007 14:29 GMT
You have to write your own deserializer.

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com

> Hello,
>
> how can I deserialize a xml object with the compact framework 1?
>
> Thanks!
fjvela@gmail.com - 27 Jun 2007 15:49 GMT
yes I know this. I develop this code but it doesn't work becouse
XmlSerializer doesn't exist in compact framewok 1.

          XmlSerializer xs = new XmlSerializer(typeof(Class1));
           MemoryStream memoryStream = new
MemoryStream(Util.StringToUTF8ByteArray(xml));
           XmlTextWriter xmlTextWriter = new
XmlTextWriter(memoryStream, Encoding.UTF8);
           return (Class1)xs.Deserialize(memoryStream);

> You have to write your own deserializer.
>
[quoted text clipped - 15 lines]
>
> - Mostrar texto de la cita -
<ctacke/> - 27 Jun 2007 16:38 GMT
Right.  What I'm saying is that you have to actually *write* the
XmlSerializer class yourself.

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com

> yes I know this. I develop this code but it doesn't work becouse
> XmlSerializer doesn't exist in compact framewok 1.
[quoted text clipped - 25 lines]
>>
>> - Mostrar texto de la cita -
fjvela@gmail.com - 28 Jun 2007 09:09 GMT
Do you have any example?

Thanks!

> Right.  What I'm saying is that you have to actually *write* the
> XmlSerializer class yourself.
[quoted text clipped - 40 lines]
>
> - Mostrar texto de la cita -
fjvela@gmail.com - 28 Jun 2007 09:10 GMT
Do you have any example?

Thanks!

> Right.  What I'm saying is that you have to actually *write* the
> XmlSerializer class yourself.
[quoted text clipped - 40 lines]
>
> - Mostrar texto de la cita -
Simon Hart - 28 Jun 2007 14:20 GMT
This might get you started:
http://www.codeproject.com/csharp/SimpleSerializer.asp

Signature

Simon Hart
http://simonrhart.blogspot.com

> Do you have any example?
>
[quoted text clipped - 44 lines]
> >
> > - Mostrar texto de la cita -
fjvela@gmail.com - 28 Jun 2007 15:45 GMT
Thanks!

I develop one to compact framework 1.

> This might get you started:http://www.codeproject.com/csharp/SimpleSerializer.asp
>
[quoted text clipped - 52 lines]
>
> - Mostrar texto de la cita -

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.