1.11M Members

selecting an attribute in xml file through variable

 
0
 

The following code line is working fine...

XmlNode sslNode = appHostNode.SelectSingleNode("sites/site[@name = 'www.wow.com']/ftpServer/security/ssl");

Now I want to pass a variable instead of 'www.wow.com'... please guide
how can I do it....

 
1
 

Have you tried:

string variableName;

And using this in-line:

'" + variableName + "'
 
0
 

Thanks alot... It works...

Question Answered as of 2 Years Ago by ChrisHunter
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article