Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2006-08-28 15:15:18 +0400
committerAtsushi Eno <atsushieno@gmail.com>2006-08-28 15:15:18 +0400
commit9862cb83ddc6175ccf555fe8c7427d3571eeb528 (patch)
tree29c1caab944dcded41948e131a151db499415bb4 /mcs/class/System.XML/Mono.Xml.XPath
parent3be91b3bfd362f4cdb19720c5c42b9df581dea00 (diff)
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. svn path=/trunk/mcs/; revision=64467
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.XPath')
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/ChangeLog5
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs11
2 files changed, 12 insertions, 4 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
index d854bc047ca..542e2887925 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
@@ -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.
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs b/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
index 0024b0cceb9..8c4b37051f5 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
+++ b/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
@@ -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
}
public override void WriteStartElement (string prefix, string localName, string ns)
- {
+ {
+ if (prefix == null)
+ prefix = String.Empty;
+
switch (state) {
case WriteState.Element:
CloseStartElement ();