SMAWMANYNENLY
New Member
Part of my MVC app is a controller action method that POSTs data to a web service and receives an XML response. I have figured out how to get the response into an XDocument but now I need to go through the info and get some of the node values. I have been researching, and the closest option I can find it to use XPath.I am wondering if this is the best way to go, or if you suggest another way. The XML I am working with will look something like:\[code\]<HistoryResponse> <ResponseType>resultsList</ResponseType> <Matches>0</Matches> <SessionID>75803234r23df3de</SessionID> <RecStart>0</RecStart> <ClientCode></ClientCode> <Results></Results></HistoryResponse>\[/code\]I need to go through, grab the Matches and SessionID and put the values into variables.Thanks.