I have this xml response from fedex webservices that looks like:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<TrackReply xmlns="http://fedex.com/ws/track/v18">
<HighestSeverity>SUCCESS</HighestSeverity>
<CompletedTrackDetails>
<Notifications>
<Severity>SUCCESS</Severity>
<Source>trck</Source>
<Code>0</Code>
<Message>Request was successfully processed.</Message>
<LocalizedMessage>Request was successfully processed.</LocalizedMessage>
</Notifications>
<DuplicateWaybill>false</DuplicateWaybill>
<MoreData>false</MoreData>
<TrackDetailsCount>0</TrackDetailsCount>
<TrackDetails>
*<StatusDetail>
<CreationTime>2020-06-24T00:00:00</CreationTime>
**<Code>DL</Code>**
<Description>Delivered</Description>
<Location>
<City>New York</City>
<StateOrProvinceCode>New York</StateOrProvinceCode>
<CountryCode>US</CountryCode>
<CountryName>United States</CountryName>
<Residential>false</Residential>
</Location>
</StatusDetail>*
<CarrierCode>FDXE</CarrierCode>
</TrackDetails>
</CompletedTrackDetails>
</TrackReply>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I want to store and do something with the information in StatusDetail, specifically the information within Code that stores -> DL
Any help will be appreciated.