I'm working with an API that is XML only and it's been ages since I've done anything with XML.
The response is below.
How do I get the value of <status>. I tried doing this:
XmlNodeList results = xmlDoc.GetElementsByTagName("ProcessRequestResult");
But I just end up with InnerText full of XML that I can't figure out how to parse correctly.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ProcessRequestResponse>
<ProcessRequestResult>
<ConsumerAddEntryResponse>
<Status>Failed</Status>
xmlDoc.Decendants("Status")in aforeachloop.