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-09-08 22:13:20 +0400
committerAtsushi Eno <atsushieno@gmail.com>2006-09-08 22:13:20 +0400
commit5aa99bb278fe4a5cb898bc131f644d6a99fec97e (patch)
tree17aaf1cfe57c67172f7202c19a90e88e92c04282 /mcs/class/System.XML/Mono.Xml.XPath
parenteda4f7490f20e5f9d9114e32ac4312a142137a59 (diff)
2006-09-08 Atsushi Enomoto <atsushi@ximian.com>
* DTMXPathDocumentWriter2.cs : fill String.Empty for null ns in WriteStartElement() and WriteStartAttribute(). svn path=/trunk/mcs/; revision=65122
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.cs5
2 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
index c13c5d2f935..fd0d36b8ac4 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-08 Atsushi Enomoto <atsushi@ximian.com>
+
+ * DTMXPathDocumentWriter2.cs : fill String.Empty for null ns in
+ WriteStartElement() and WriteStartAttribute().
+
2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
* XPathNavigatorReader.cs : MoveToFirstAttribute() should return
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs b/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
index 8c4b37051f5..b4f7414964d 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
+++ b/mcs/class/System.XML/Mono.Xml.XPath/DTMXPathDocumentWriter2.cs
@@ -527,6 +527,8 @@ namespace Mono.Xml.XPath
{
if (prefix == null)
prefix = String.Empty;
+ if (ns == null)
+ ns = String.Empty;
switch (state) {
case WriteState.Element:
@@ -609,6 +611,9 @@ namespace Mono.Xml.XPath
public override void WriteStartAttribute (string prefix, string localName, string ns)
{
+ if (ns == null)
+ ns = String.Empty;
+
if (state != WriteState.Element)
throw new InvalidOperationException ("Invalid document state for attribute: " + state);