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

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                f...@debian.org
INIT.D Developer                                           f...@initd.org
                   Ma chi sei?....-il trafficante di Nutella? -- Giorgia

Attachment: signature.asc
Description: Questa รจ una parte del messaggio firmata digitalmente

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to