[Mono-dev] PATCH: System.Xml.Linq DTD round-trip

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Thu Apr 2 22:27:09 EDT 2009


Yes, please go ahead. Thanks.

Atsushi Eno

Federico Di Gregorio wrote:
> Currently the DTD SYSTEMID is not correctly set in the XDocumentType
> object when parsing an XML file. This simple one-line patch fixes that.
> Ok to commit?
> 
> Index: class/System.Xml.Linq/System.Xml.Linq/XNode.cs
> ===================================================================
> --- class/System.Xml.Linq/System.Xml.Linq/XNode.cs      (revisione 130841)
> +++ class/System.Xml.Linq/System.Xml.Linq/XNode.cs      (copia locale)
> @@ -181,7 +181,7 @@
>                         case XmlNodeType.DocumentType:
>                                 XDocumentType d = new XDocumentType (r.Name,
>                                         r.GetAttribute ("PUBLIC"),
> -                                       r.GetAttribute ("System"),
> +                                       r.GetAttribute ("SYSTEM"),
>                                         r.Value);
>                                 d.FillLineInfoAndBaseUri (r, options);
>                                 r.Read ();
> 
> federico
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list