In the below xml file:
<SVCs>
<SVC>
<id>001</id>
<request>Send SMS SVC 001 Request</request>
<reposne>Send SMS SVC 001 Response</reposne>
</SVC>
<SVC>
<id>002</id>
<request>Send SMS SVC 002 Request</request>
<reposne>Send SMS SVC 002 Response</reposne>
</SVC>
</SVCs>
I need to search for id say 002, and get the request and response for the same in form of plain text. i am working in winforms C# .net 4.0. How do i achieve this?
I am using XMLDocument namespace to parse through the document.
I am really new to XML library and i think this is one of the basic questions. I really googled a lot but couldn’t find how to get the inner text by searching for a tag.
I would use linq2xml
or
PS: I keep the same typo
reposne