1
Answer

in C# - how can i use a variable in this SelectSingleNode statement?

r

r

2y
901
1

Hello! in C# - how can i use a variable in this SelectSingleNode statement?

assuming fieldId is a var or string.

XmlElement elt = xml.SelectSingleNode(String.Format("responses/response/fieldset/field[@id={0}']", fieldId)) as XmlElement;

thanks!

Answers (1)