* 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
+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.
XPathNodeType.Text,
null,
false,
- null,
+ String.Empty,
String.Empty,
String.Empty,
data,
XPathNodeType.Comment,
null,
false,
- null,
+ String.Empty,
String.Empty,
String.Empty,
data,
XPathNodeType.Whitespace,
null,
false,
- null,
+ String.Empty,
String.Empty,
String.Empty,
data,
}\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