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

Federico Di Gregorio fog at initd.org
Thu Apr 2 09:53:57 EDT 2009


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                                fog at debian.org
INIT.D Developer                                           fog at initd.org
                   Ma chi sei?....-il trafficante di Nutella? -- Giorgia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
	firmata digitalmente
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090402/90513d66/attachment-0001.bin 


More information about the Mono-devel-list mailing list