Deserialize xml object

F

fjvela

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

Guest

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
 
F

fjvela

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 -
 
F

fjvela

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 -
 
G

Guest

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 -
 
F

fjvela

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 -
 

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

Top