RE: how do you serialize to xml by erikru
erikru
Tue Aug 19 17:35:57 CDT 2003
There is no built in Xml Serialization for any class in the .NET CF except
for the dataset.
You can build your own XML serializer using reflection without too much
trouble, though I don't have any sample code available. Several of the
books floating around do have such a sample application - I specifically
know .net compact framework kickstart (SAMS) does
Hope this helps
-- Erik
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Joe Audette" <joe@softwidget.com>
| Sender: "Joe Audette" <joe@softwidget.com>
| Subject: how do you serialize to xml
| Date: Thu, 14 Aug 2003 19:52:15 -0700
| Lines: 9
| Message-ID: <05fd01c362d8$3bbfcf30$a601280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNi2Du/TtZS33M0SHWMh6FZD/bGKA==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:31040
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| how can you serialize an object's state to xml in the
| compact framework? do you have to do it manually, create
| your xmldoc and save it? or is there an easy way? I don't
| see an XmlSerializer object in the framework.
|
| thanks,
|
|
| Joe
|