Below is my XML,
<?xml version="1.0" encoding="utf-8"?> <soap:Envelopexmlns: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> <Response xmlns="http://tempuri.org/"> <Result> <mp_response> <data signature="something"> <outcome errorcode="0" errordescription="" errorsolution=""/> something </data> </mp_response> </Result> </Response> </soap:Body> </soap:Envelope>
I want to extract the βerror codeβ from this XML. How am I supposed to do this? Please, help.
source share