adding innertext to an xml node

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

adding innertext to an xml node

 
1
  #1
May 3rd, 2005
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);
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Re: adding innertext to an xml node

 
1
  #2
May 10th, 2005
You're going to need to explain that one a little better
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

Re: adding innertext to an xml node

 
0
  #3
May 10th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

Re: adding innertext to an xml node

 
0
  #4
May 13th, 2005
I solved this one too. I just used a function that set the node to a value.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC