How do I search a xmldata file node for the exact text that I have in my string value.
I.e.: string fullname = "John Smith"
Search XmlData.xml for node “FullName” where the value of the text = “John Smith”.
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.
Try an xpath expression that goes something like this:
It means find any element that has the name
FullNameand the value “John Smith”.For a sample on how to load up the document and use an xpath query, see MSDN. To test some xpath queries on a sample document, try here.