Deserialize xml object

  • Thread starter Thread starter fjvela
  • Start date Start date
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);
 
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
 
Do you have any example?

Thanks!

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








- Mostrar texto de la cita -
 
Do you have any example?

Thanks!

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








- Mostrar texto de la cita -
 
This might get you started:
http://www.codeproject.com/csharp/SimpleSerializer.asp

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


Do you have any example?

Thanks!

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




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

I develop one to compact framework 1.





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

--
Simon Harthttp://simonrhart.blogspot.com



Do you have any example?

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

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

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 -
 
Back
Top