P
PiotrKolodziej
Hi
I'am using SelectNodes method to find if node followed by string exists, and
if so i going to select that node.
Create doc i such a way:
doc = new XmlDocument();
doc.AppendChild(doc.CreateXmlDeclaration("1.0", "UTF-8", null));
docHandle = doc.CreateElement("Base");
doc.AppendChild(docHandle);
After that :
nodes = doc.SelectNodes(path);
IMy xmldocument represents directory structure, and before i add element i
check if each of directories ( dir1\dir2\...dirn ) exists.
Unfortunately 'nodes = doc.SelectNodes(path)' raises an exception 'Invalid
token in path'.
For any help - thanks
I'am using SelectNodes method to find if node followed by string exists, and
if so i going to select that node.
Create doc i such a way:
doc = new XmlDocument();
doc.AppendChild(doc.CreateXmlDeclaration("1.0", "UTF-8", null));
docHandle = doc.CreateElement("Base");
doc.AppendChild(docHandle);
After that :
nodes = doc.SelectNodes(path);
IMy xmldocument represents directory structure, and before i add element i
check if each of directories ( dir1\dir2\...dirn ) exists.
Unfortunately 'nodes = doc.SelectNodes(path)' raises an exception 'Invalid
token in path'.
For any help - thanks