[Mono-devel-list] XmlSerializer fix
Erik LeBel
eriklebel at yahoo.ca
Tue Jul 8 16:11:30 EDT 2003
Hello,
I noticed that the new serializer no longer declares the namespaces passed to Serialize in the top-level element.
Here is a small fix to correct this. Ive added an argument to XmlSerializationWriters Initialize method, to provide the list of top-level namespaces, and when generating the top-level element, we declare each namespace in this list. The list itself is already a part of the implementation, but was not being used until now.
Consequently, XmlSerializers master Serialize method initializes its XmlSerilizationWriter with the XmlSerializerNamespaces it was passed.
If there are no objections I will commit later this week.
regards,
Erik
---------------------------------
Post your free ad now! Yahoo! Canada Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030708/19df64f1/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xser-fix.tar.gz
Type: application/x-gzip-compressed
Size: 5043 bytes
Desc: Xser-fix.tar.gz
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030708/19df64f1/attachment.bin
More information about the Mono-devel-list
mailing list