Good day.
im hoping that somebody could please assist me. i have spent days trying to figure this out without much luck. i have an XML SOAP document which i am trying to get certain values from. below is a snipped of the document.

```
<Devices isOnline="false">
        <deviceId>
          <Number>1</Number>
          <Id>11111</Id>
        </deviceId>
        <lastUploadDateTime>2017-07-27</lastUploadDateTime>
        <Parameters>
          <TempId>22222</TempId>
          <MappedId>3333</MappedId>
        </Parameters>
 </Devices>

```

i need to first search for in the deviceID to check for a specific ID, if i find a match i then need to go to the pararameters and get the values of the TempID and MappedID elements.

so far i have the following code which loops through the Devices element, but i am unsure of how to check for a specific ID under deviceId and then get the values of TempId and MappedId under Parameters.

```
 XDocument doc = XDocument.Parse(xml);
 XNamespace ns = "http://";
 IEnumerable<XElement> responses = doc.Descendants("Devices");

 foreach (XElement response in responses)
 {

 }

```

Any Assistance would be greatly appreciated. i have tried many examples i have found, but none that are able to get my exact details i require.