G
Guest
I am getting The ' ' character hexadecimal value 0x20, cannot be included in
a name in the following module:
public XmlRegistryKey GetSubKey(string path, bool createpath)
{
XmlElement e = Elem, parent = null;
for (int len, start = 0; start < path.Length; start += len + 1)
{
len = path.IndexOf('/', start);
if (len == -1)
len = path.Length;
len -= start;
string node = path.Substring(start, len);
parent = e;
e = e[node];
if (e == null)
if (createpath)
parent.AppendChild(e =
Elem.OwnerDocument.CreateElement(node));
else
return null;
}
return new XmlRegistryKey(e, Reg);
}
When parent.AppendChild(e = Elem.OwnerDocument.CreateElement(node)) is
executed.
a name in the following module:
public XmlRegistryKey GetSubKey(string path, bool createpath)
{
XmlElement e = Elem, parent = null;
for (int len, start = 0; start < path.Length; start += len + 1)
{
len = path.IndexOf('/', start);
if (len == -1)
len = path.Length;
len -= start;
string node = path.Substring(start, len);
parent = e;
e = e[node];
if (e == null)
if (createpath)
parent.AppendChild(e =
Elem.OwnerDocument.CreateElement(node));
else
return null;
}
return new XmlRegistryKey(e, Reg);
}
When parent.AppendChild(e = Elem.OwnerDocument.CreateElement(node)) is
executed.