* XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
* XmlConvert.cs : fixed VerifyNCName() to check correctly.
svn path=/trunk/mcs/; revision=15064
+2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
+
+ * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
+ * XmlConvert.cs : fixed VerifyNCName() to check correctly.
+
2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
* XmlDocumentNavigator.cs : Compute document node one time.
if(ncname == null)
throw new ArgumentNullException("ncname");
- if(XmlConstructs.IsValidName(ncname, out innerEx))
+ if(XmlConstructs.IsValidNCName(ncname, out innerEx))
return ncname;
throw new XmlException("'"+ncname+"' is not a valid XML NCName",innerEx);
return false;
bool loop = true;
do {
- switch (node.NodeType) {
+ switch (n.NodeType) {
case XmlNodeType.XmlDeclaration:
case XmlNodeType.DocumentType:
- n = node.NextSibling;
+ n = n.NextSibling;
if (n == null)
return false;
break;
break;
}
} while (loop);
+ node = n;
}
else
node = node.FirstChild;