DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   adding innertext to an xml node (http://www.daniweb.com/forums/thread23011.html)

Dark_Omen May 3rd, 2005 1:30 pm
adding innertext to an xml node
 
Hello,

I am trying to insert true or false into an xml file that has one node <LoggedIn></LoggedIn>.
This is what I have so far:
 
StreamReader xmlString = new StreamReader(Server.MapPath("ResponseMessages/LoggedIn"));
XmlDocument doc = new XmlDocument();
 
doc.Load(xmlString);

Iron_Cross May 10th, 2005 2:26 pm
Re: adding innertext to an xml node
 
You're going to need to explain that one a little better :P

Dark_Omen May 10th, 2005 4:07 pm
Re: adding innertext to an xml node
 
I am trying to add true or false to an xml file, which only has one node. I can get it to go through and set the node to true or false, and I checked that in the command window to make sure it was adding it, but when I try reading it after that it returns no value in the node and returns an error.

Dark_Omen May 13th, 2005 4:42 pm
Re: adding innertext to an xml node
 
I solved this one too. I just used a function that set the node to a value.


All times are GMT -4. The time now is 10:18 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC