tags:

views:

57

answers:

1

With my other question: http://stackoverflow.com/questions/1672750/c-showing-multiple-xml-data-entires-with-the-same-node-value

I have one more question, in the part:

XmlNodeList allNodes = doc.SelectNodes("/Lessons/Lesson[Date='01/01/2010']");

Is there a way to put a string with a value in it (that I already have setup) in the part '01/01/2010'?

+2  A: 

This simple change would do...

string yourstring = "01/01/2010";

XmlNodeList allNodes = doc.SelectNodes("/Lessons/Lesson[Date='" + yourstring + "']");
Martin Peck
Thanks! Perfect!
The Woo