[Mono-devel-list] Status of XML code

Adam Shepherd adam_p_s at yahoo.co.uk
Tue May 27 08:25:15 EDT 2003


Hi
Just started playing with Mono - looks cool, and it is a really important project, so
thanks to all you guys for your hard work.

Anyway, I am a little confused as to the current status of XML serialization.  I would
just like to (de)serialize classes to and from text files.  From my limited experience,
XmlSerializer seems like the way to do this.

- The Mono 0.24 release note (http://www.go-mono.com/archive/mono-0.24.html#xml) says
"The first implementation of XML deserialization has been done. It's not complete but
XmlSerializer has now become somewhat symmetric".

- However the method XmlSerializer.Serialize seems to be missing.  I get an error "error
CS8006: Could not find any applicable function for this argument list" when I try to
compile:
    Serialize lSerial;
<snip>
    XmlSerializer lSerializer = new XmlSerializer(typeof(Serialize));
    lSerializer.Serialize(lSerial);   << Error on this line.
[N.B. I am running the Windows version.]

- And the class library (http://www.go-mono.com/class-status-System.Xml.html) says that
System.XML.Serialization.XmlSerializer has Serialize and Deserialize as to do.

So can anyone help me: can I do basic serialization of a class to a file yet, and if so
what method should I use?  NB I am not subscribed to the list, so please copy me directly
on any reply.

Many thanks.
Adam


=====
-----------------
Adam Shepherd
adam at ashepherd.co.uk

__________________________________________________
It's Samaritans' Week. Help Samaritans help others. 
Call 08709 000032 to give or donate online now at http://www.samaritans.org/support/donations.shtm



More information about the Mono-devel-list mailing list