* QualifiedName.cs (FromString): fix from nunit tests
svn path=/trunk/mcs/; revision=18931
+2003-10-12 Todd Berman <tberman@gentoo.org>
+
+ * QualifiedName.cs (FromString): fix from nunit tests
+
2003-10-08 Todd Berman <tberman@gentoo.org>
* QualifiedName.cs: Initial implementation of FromString.
if(value.IndexOf(':') > 0) {
string[] strings = value.Split(':');
- if(strings.Length != 2 || strings[0].Length == 0 || strings[1].Length == 1) {
+ if(strings.Length != 2 || strings[0].Length == 0 || strings[1].Length == 0) {
throw new FormatException ("xml_ImproperQName");
}
+
string nspace = node.GetNamespaceOfPrefix (strings[0]);
if(nspace.Length == 0) {
throw new FormatException ("xml_CouldNotResolveNSPrefix");