RSS Forums RSS

adding innertext to an xml node

Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
Reply
Posts: 555
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  
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);
AddThis Social Bookmark Button
Reply With Quote  
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

  #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  
Posts: 555
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

  #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  
Posts: 555
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

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

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the C# Forum
Views: 9794 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:08 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC