2006-08-28 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 28 Aug 2006 11:15:18 +0000 (11:15 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 28 Aug 2006 11:15:18 +0000 (11:15 -0000)
* DTMXPathDocumentWriter2.cs : use String.Empty instead of null for
  localName for those nodes which does not have a name.

svn path=/trunk/mcs/; revision=64467

mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs

index d854bc047ca72ce1e6bab94bf2d0f550ea531d0c..542e2887925658faa59a5127989438294787998e 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-28  Atsushi Enomoto <atsushi@ximian.com>
+
+       * DTMXPathDocumentWriter2.cs : use String.Empty instead of null for
+         localName for those nodes which does not have a name.
+
 2006-04-10  Atsushi Enomoto <atsushi@ximian.com>
 
        * XPathNavigatorReader.cs : Read() did not compute Depth correctly.
index 0024b0cceb97500ca3566cac1b14d201bb48f33f..8c4b37051f53ae1bd39b26e07c8a1bee8f280343 100644 (file)
@@ -414,7 +414,7 @@ namespace Mono.Xml.XPath
                                XPathNodeType.Text,
                                null,
                                false,
-                               null,
+                               String.Empty,
                                String.Empty,
                                String.Empty,
                                data,
@@ -452,7 +452,7 @@ namespace Mono.Xml.XPath
                                XPathNodeType.Comment,
                                null,
                                false,
-                               null,
+                               String.Empty,
                                String.Empty,
                                String.Empty,
                                data,
@@ -498,7 +498,7 @@ namespace Mono.Xml.XPath
                                XPathNodeType.Whitespace,
                                null,
                                false,
-                               null,
+                               String.Empty,
                                String.Empty,
                                String.Empty,
                                data,
@@ -524,7 +524,10 @@ namespace Mono.Xml.XPath
                }\r
 \r
                public override void WriteStartElement (string prefix, string localName, string ns)\r
-               {\r
+               {
+                       if (prefix == null)
+                               prefix = String.Empty;\r
+
                        switch (state) {\r
                        case WriteState.Element:\r
                                CloseStartElement ();\r