Author: atsushi
Date: 2006-08-28 07:15:18 -0400 (Mon, 28 Aug 2006)
New Revision: 64467

Modified:
   trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
   trunk/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
Log:
2006-08-28  Atsushi Enomoto <[EMAIL PROTECTED]>

        * DTMXPathDocumentWriter2.cs : use String.Empty instead of null for
          localName for those nodes which does not have a name.



Modified: trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog 2006-08-28 10:50:43 UTC 
(rev 64466)
+++ trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog 2006-08-28 11:15:18 UTC 
(rev 64467)
@@ -1,3 +1,8 @@
+2006-08-28  Atsushi Enomoto <[EMAIL PROTECTED]>
+
+       * DTMXPathDocumentWriter2.cs : use String.Empty instead of null for
+         localName for those nodes which does not have a name.
+
 2006-04-10  Atsushi Enomoto <[EMAIL PROTECTED]>
 
        * XPathNavigatorReader.cs : Read() did not compute Depth correctly.

Modified: trunk/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs        
2006-08-28 10:50:43 UTC (rev 64466)
+++ trunk/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs        
2006-08-28 11:15:18 UTC (rev 64467)
@@ -414,9 +414,9 @@
                                XPathNodeType.Text,
                                null,
                                false,
-                               null,
                                String.Empty,
                                String.Empty,
+                               String.Empty,
                                data,
                                null,
                                0, // nsIndex
@@ -452,9 +452,9 @@
                                XPathNodeType.Comment,
                                null,
                                false,
-                               null,
                                String.Empty,
                                String.Empty,
+                               String.Empty,
                                data,
                                null,
                                0, // nsIndex
@@ -498,9 +498,9 @@
                                XPathNodeType.Whitespace,
                                null,
                                false,
-                               null,
                                String.Empty,
                                String.Empty,
+                               String.Empty,
                                data,
                                null,
                                0, // nsIndex
@@ -524,7 +524,10 @@
                }
 
                public override void WriteStartElement (string prefix, string 
localName, string ns)
-               {
+               {
+                       if (prefix == null)
+                               prefix = String.Empty;
+
                        switch (state) {
                        case WriteState.Element:
                                CloseStartElement ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to