View Single Post
  #8 (permalink)  
Old January 7th, 2008, 06:09 PM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Firstly, with the statement InnerText.ToString(), the .ToString() is completely redundent, InnerText is already a string.

Secondly "//SavedApplicationId" will select all SavedApplicationId elements in the file, at any level. Change that to appNode.SelectSingleNode("SavedApplicationId") to select the child of the appNode.

Thirdly, you don't actually say what is going wrong, so I can't really tell you.

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote