[Mono-devel-list] [PATCH] fix for System.Xml.XmlTextWriter.

Atsushi Eno ginga at kit.hi-ho.ne.jp
Wed Nov 19 09:47:10 EST 2003


Hello,

> I found a problem in System.Xml.XmlTextWriter.WriteStartAttribute(). We 
> try to add to the newAttributeNamespaces a prefix which already exists 
> and we get an exception (DuplicateKeyException). The problem is that 
> when generating an XmlSchema from DataSet we produce to attributes 
> (IsDataSet and Locale) with the same prefix and namespace which is the 
> way MS.Net do it. But we get a DuplicateKeyException. (You can find the 
> source in System.Data.DataSet.BuildScema()).

Yes, it should be fixed. Thanks for the patch.

> Attached is the diff file with the change. If no one objects I will commit.

Please go ahead. (It would be a bit better to modify
from "newAttributeNamespaces[prefix]" and "Equal(ns)"
to "newAttributeNamespaces [prefix]" and "Equals (ns)" ;-)

Thanks a lot!

Atsushi Eno



More information about the Mono-devel-list mailing list