943,917 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 14054
  • C# RSS
May 3rd, 2005
1

adding innertext to an xml node

Expand Post »
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);
Similar Threads
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
May 10th, 2005
1

Re: adding innertext to an xml node

You're going to need to explain that one a little better
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003
May 10th, 2005
0

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.
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
May 13th, 2005
0

Re: adding innertext to an xml node

I solved this one too. I just used a function that set the node to a value.
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: System.Reflection
Next Thread in C# Forum Timeline: Modifying head tag of parent file.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC