c# xmlnode select single node to remove

MenAlgolo

New Member
I have an XML document that has nodes/values like this:\[code\]<data name="btnAutoTrans" xml:space="preserve"> <value>Auto Trans</value></data><data name="btnDieEngine" xml:space="preserve"> <value>Diesel Engine</value></data>\[/code\]I need to select a single node for a specific name="btnDieEngine" (for example)but all the code I have tried from searching google always returns NULL value.The original code I had was\[code\]XmlNode node = xmldoc.SelectSingleNode("data[name='btnDieEngine']");\[/code\]but this returns null.Any help would be appreciated
 
Top