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);

You're going to need to explain that one a little better :P

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.

I solved this one too. I just used a function that set the node to a value.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.