Thanks for the very useful links! Implementing IXmlSerializable is a bit over the top it seems though. Perhaps when you have a large tree of objects of which there's one class that needs to be done by hand like this. But in my case where it's basically *the* class, I figure it's better to then forget about the XmlSerializer and go the XmlTextReader/Writer-route directly. Saves me from having to implement the GetSchema()-method :)
-Jeroen -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Deepak Shenoy Sent: dinsdag 11 november 2003 15:44 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] CDATA with XmlSerializer >The problem is that I want to feed the serialized versions of those instances into other applications that expect those files to contain valid HTML and are not capable of performing those conversions (or at least, I can't expect them to) so it would be best if everything could be placed within a CDATA-block. >> THe following URLs seem to indicate that the XMLSerializer class doesn't do CDATA sections. http://tinyurl.com/ujd4 http://tinyurl.com/ujd7 You can choose to implement ISerializable or write the entire thing yourself using DOM. Deepak Shenoy =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: Guerrilla ASP.NET, 10 Nov 2003 in London and 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnet Guerrilla .NET, 8 Dec 2003, in Los Angeles http://www.develop.com/courses/gdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: Guerrilla ASP.NET, 10 Nov 2003 in London and 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnet Guerrilla .NET, 8 Dec 2003, in Los Angeles http://www.develop.com/courses/gdotnet View archives and manage your subscription(s) at http://discuss.develop.com
