PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Deserialize xml object

Reply

Deserialize xml object

 
Thread Tools Rate Thread
Old 27-06-2007, 02:22 PM   #1
fjvela@gmail.com
Guest
 
Posts: n/a
Default Deserialize xml object


Hello,

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

Thanks!

  Reply With Quote
Old 27-06-2007, 02:29 PM   #2
Guest
 
Posts: n/a
Default Re: Deserialize xml object

You have to write your own deserializer.


--

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


<fjvela@gmail.com> wrote in message
news:1182950542.253335.291600@n60g2000hse.googlegroups.com...
> Hello,
>
> how can I deserialize a xml object with the compact framework 1?
>
> Thanks!
>



  Reply With Quote
Old 27-06-2007, 03:49 PM   #3
fjvela@gmail.com
Guest
 
Posts: n/a
Default Re: Deserialize xml object

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);


On 27 jun, 15:29, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> You have to write your own deserializer.
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded Worldwww.OpenNETCF.com
>
> <fjv...@gmail.com> wrote in message
>
> news:1182950542.253335.291600@n60g2000hse.googlegroups.com...
>
>
>
> > Hello,

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

>
> > Thanks!- Ocultar texto de la cita -

>
> - Mostrar texto de la cita -



  Reply With Quote
Old 27-06-2007, 04:38 PM   #4
Guest
 
Posts: n/a
Default Re: Deserialize xml object

Right. What I'm saying is that you have to actually *write* the
XmlSerializer class yourself.


--

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


<fjvela@gmail.com> wrote in message
news:1182955748.529040.295030@k79g2000hse.googlegroups.com...
> 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);
>
>
> On 27 jun, 15:29, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
>> You have to write your own deserializer.
>>
>> --
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Managed Code in an Embedded Worldwww.OpenNETCF.com
>>
>> <fjv...@gmail.com> wrote in message
>>
>> news:1182950542.253335.291600@n60g2000hse.googlegroups.com...
>>
>>
>>
>> > Hello,

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

>>
>> > Thanks!- Ocultar texto de la cita -

>>
>> - Mostrar texto de la cita -

>
>



  Reply With Quote
Old 28-06-2007, 09:09 AM   #5
fjvela@gmail.com
Guest
 
Posts: n/a
Default Re: Deserialize xml object

Do you have any example?

Thanks!

On 27 jun, 17:38, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> Right. What I'm saying is that you have to actually *write* the
> XmlSerializer class yourself.
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded Worldwww.OpenNETCF.com
>
> <fjv...@gmail.com> wrote in message
>
> news:1182955748.529040.295030@k79g2000hse.googlegroups.com...
>
>
>
> > 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);

>
> > On 27 jun, 15:29, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> >> You have to write your own deserializer.

>
> >> --

>
> >> Chris Tacke, Embedded MVP
> >> OpenNETCF Consulting
> >> Managed Code in an Embedded Worldwww.OpenNETCF.com

>
> >> <fjv...@gmail.com> wrote in message

>
> >>news:1182950542.253335.291600@n60g2000hse.googlegroups.com...

>
> >> > Hello,

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

>
> >> > Thanks!- Ocultar texto de la cita -

>
> >> - Mostrar texto de la cita -- Ocultar texto de la cita -

>
> - Mostrar texto de la cita -



  Reply With Quote
Old 28-06-2007, 09:10 AM   #6
fjvela@gmail.com
Guest
 
Posts: n/a
Default Re: Deserialize xml object

Do you have any example?

Thanks!

On 27 jun, 17:38, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> Right. What I'm saying is that you have to actually *write* the
> XmlSerializer class yourself.
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded Worldwww.OpenNETCF.com
>
> <fjv...@gmail.com> wrote in message
>
> news:1182955748.529040.295030@k79g2000hse.googlegroups.com...
>
>
>
> > 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);

>
> > On 27 jun, 15:29, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> >> You have to write your own deserializer.

>
> >> --

>
> >> Chris Tacke, Embedded MVP
> >> OpenNETCF Consulting
> >> Managed Code in an Embedded Worldwww.OpenNETCF.com

>
> >> <fjv...@gmail.com> wrote in message

>
> >>news:1182950542.253335.291600@n60g2000hse.googlegroups.com...

>
> >> > Hello,

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

>
> >> > Thanks!- Ocultar texto de la cita -

>
> >> - Mostrar texto de la cita -- Ocultar texto de la cita -

>
> - Mostrar texto de la cita -



  Reply With Quote
Old 28-06-2007, 02:20 PM   #7
=?Utf-8?B?U2ltb24gSGFydA==?=
Guest
 
Posts: n/a
Default Re: Deserialize xml object

This might get you started:
http://www.codeproject.com/csharp/SimpleSerializer.asp

--
Simon Hart
http://simonrhart.blogspot.com


"fjvela@gmail.com" wrote:

> Do you have any example?
>
> Thanks!
>
> On 27 jun, 17:38, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> > Right. What I'm saying is that you have to actually *write* the
> > XmlSerializer class yourself.
> >
> > --
> >
> > Chris Tacke, Embedded MVP
> > OpenNETCF Consulting
> > Managed Code in an Embedded Worldwww.OpenNETCF.com
> >
> > <fjv...@gmail.com> wrote in message
> >
> > news:1182955748.529040.295030@k79g2000hse.googlegroups.com...
> >
> >
> >
> > > 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);

> >
> > > On 27 jun, 15:29, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> > >> You have to write your own deserializer.

> >
> > >> --

> >
> > >> Chris Tacke, Embedded MVP
> > >> OpenNETCF Consulting
> > >> Managed Code in an Embedded Worldwww.OpenNETCF.com

> >
> > >> <fjv...@gmail.com> wrote in message

> >
> > >>news:1182950542.253335.291600@n60g2000hse.googlegroups.com...

> >
> > >> > Hello,

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

> >
> > >> > Thanks!- Ocultar texto de la cita -

> >
> > >> - Mostrar texto de la cita -- Ocultar texto de la cita -

> >
> > - Mostrar texto de la cita -

>
>
>

  Reply With Quote
Old 28-06-2007, 03:45 PM   #8
fjvela@gmail.com
Guest
 
Posts: n/a
Default Re: Deserialize xml object

Thanks!

I develop one to compact framework 1.





On 28 jun, 15:20, Simon Hart <srhart...@yahoo.com> wrote:
> This might get you started:http://www.codeproject.com/csharp/SimpleSerializer.asp
>
> --
> Simon Harthttp://simonrhart.blogspot.com
>
>
>
> "fjv...@gmail.com" wrote:
> > Do you have any example?

>
> > Thanks!

>
> > On 27 jun, 17:38, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> > > Right. What I'm saying is that you have to actually *write* the
> > > XmlSerializer class yourself.

>
> > > --

>
> > > Chris Tacke, Embedded MVP
> > > OpenNETCF Consulting
> > > Managed Code in an Embedded Worldwww.OpenNETCF.com

>
> > > <fjv...@gmail.com> wrote in message

>
> > >news:1182955748.529040.295030@k79g2000hse.googlegroups.com...

>
> > > > 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);

>
> > > > On 27 jun, 15:29, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> > > >> You have to write your own deserializer.

>
> > > >> --

>
> > > >> Chris Tacke, Embedded MVP
> > > >> OpenNETCF Consulting
> > > >> Managed Code in an Embedded Worldwww.OpenNETCF.com

>
> > > >> <fjv...@gmail.com> wrote in message

>
> > > >>news:1182950542.253335.291600@n60g2000hse.googlegroups.com...

>
> > > >> > Hello,

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

>
> > > >> > Thanks!- Ocultar texto de la cita -

>
> > > >> - Mostrar texto de la cita -- Ocultar texto de la cita -

>
> > > - Mostrar texto de la cita -- Ocultar texto de la cita -

>
> - Mostrar texto de la cita -



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off