[Mono-devel-list] XmlSerializer fix

Lluis Sanchez lluis at ideary.com
Thu Jul 10 10:20:52 EDT 2003


Hi,

The patch is ok for me.

----- Original Message ----- 
From: Erik LeBel 
To: mono-devel-list at ximian.com 
Sent: Tuesday, July 08, 2003 10:11 PM
Subject: [Mono-devel-list] XmlSerializer fix


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. I've added an argument to XmlSerializationWriter's 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, XmlSerializer's 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/20030710/6b14db75/attachment.html 


More information about the Mono-devel-list mailing list