G
Guest
hello,
I ran the following code
//////////////////
XmlDocument dom = new XmlDocument();
dom .Load(@"C:\BindingFile.xml");
string mystring = dom.SelectSingleNode(MyXpath).InnerText;
mystring = mystring.Substring(0, 2);
////////////////////////////////////////
first time around mystring contained the xpath selectsinglenode return the
word "sean".
the second time i ran the code the xpath selectsinglenode returns the word
"se".
It seems that the xml file is storing the substring and not the original.
how could this be happening - i thought when i xpathed the string out - and
then worked on it - the original would be left in the dom???
could some one explain it to me please.
Also is there a way to leave the original string "sean" in the xml document
untouched. and yet still work on it locally.
thanks very much
I ran the following code
//////////////////
XmlDocument dom = new XmlDocument();
dom .Load(@"C:\BindingFile.xml");
string mystring = dom.SelectSingleNode(MyXpath).InnerText;
mystring = mystring.Substring(0, 2);
////////////////////////////////////////
first time around mystring contained the xpath selectsinglenode return the
word "sean".
the second time i ran the code the xpath selectsinglenode returns the word
"se".
It seems that the xml file is storing the substring and not the original.
how could this be happening - i thought when i xpathed the string out - and
then worked on it - the original would be left in the dom???
could some one explain it to me please.
Also is there a way to leave the original string "sean" in the xml document
untouched. and yet still work on it locally.
thanks very much