[Mono-dev] XmlWriter.WriteAttributeString incompatible with MS implementation
atsushi at ximian.com
Tue Feb 3 22:53:06 EST 2009
If you file a bug on our bugzilla, I might "fix" the implementation
difference, depending on the repro, without the patch you have.
David Mitchell wrote:
> I'm currently trying to port the back-end of a very large project over to OSX
> from Windows, and I've encountered a rather vexing incompatibility between
> Mono and Microsoft's implementation of .NET.
> The documentation for XmlWriter.WriteAttributeString(string prefix, string
> localName, string ns, string value) seems to indicate that if a prefix is
> provided and a namespace is not, that the method may throw an
> ArgumentException, and this is what Mono does. However, Microsoft's
> implementation allows this scenario if the given prefix has already been
> associated with a namespace.
> This wouldn't be a terribly big deal, except that the XmlWriter provides no
> way to determine the namespace associated with a prefix, and we have many
> cases in which we only have a prefix to work with. Is there any chance of
> getting this behavior modified to conform to Microsoft's implementation? I'd
> submit a patch myself, but as I was investigating this issue with a
> coworker, he opened up the relevant classes in Reflector, so I'm tainted...
More information about the Mono-devel-list