I am newbie in xml related things
I am not able to understand :
SelectNodes(@"//Form/*[. = 'on']");
Note : SelectNodes is a function of XmlNode.(related to XmlDocument)
Please tell me what this code snippet means ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.means the current element node, whatever it is. The predicate is checking the element’s text node to see if it’s the string'on'.So that XPath query selects any nodes that are children of the
Formnode and have a value ofon.