You need to sign in to do that
Don't have an account?
saikrishna.G
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><p889:basicChecksDetailsResponse xmlns:p889="http://comexp.ibm.com"><basicChecksDetailsReturn><?xml version="1.0" encoding="UTF-8"?>
<ExportEROData xmlns="http://w3.test.com/xmlns/ibmww/ff/sdf/ews/erodata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://w3.test.com/xmlns/testww/ff/sdf/ews/erodata https://w3-206-beta1.w3-gslbdst.test.com/isc/esd/ibmexpws/schemas/ExportEROData_0101.xsd">
<ExportChecksPassed>true</ExportChecksPassed>
<ExportUnderReview>false</ExportUnderReview>
<ExportLocations>
<ExportLocationPassed>US</ExportLocationPassed>
</ExportLocations>
</ExportEROData>
</basicChecksDetailsReturn></p889:basicChecksDetailsResponse></soapenv:Body></soapenv:Envelope>
I need "ExportChecksPassed" ,"ExportUnderReview" values
Parsing XML response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><p889:basicChecksDetailsResponse xmlns:p889="http://comexp.ibm.com"><basicChecksDetailsReturn><?xml version="1.0" encoding="UTF-8"?>
<ExportEROData xmlns="http://w3.test.com/xmlns/ibmww/ff/sdf/ews/erodata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://w3.test.com/xmlns/testww/ff/sdf/ews/erodata https://w3-206-beta1.w3-gslbdst.test.com/isc/esd/ibmexpws/schemas/ExportEROData_0101.xsd">
<ExportChecksPassed>true</ExportChecksPassed>
<ExportUnderReview>false</ExportUnderReview>
<ExportLocations>
<ExportLocationPassed>US</ExportLocationPassed>
</ExportLocations>
</ExportEROData>
</basicChecksDetailsReturn></p889:basicChecksDetailsResponse></soapenv:Body></soapenv:Envelope>
I need "ExportChecksPassed" ,"ExportUnderReview" values
Please try these link
https://webkul.com/blog/parsing-xml-file-apex/
https://developer.salesforce.com/forums/?id=906F0000000BP4qIAG
Which can help you parsing this xml document but you want data from only two xml tags then I think you can use String methods to get them like as it is not an appropriate way to do but it is much better from parsing whole xml to get data from only 2 xml tags.
For Example u want to find the data from ExportChecksPassed xml tag
xmlResponse is a response u r getting in XML.
I hope it will help u :)
if your problem get solved then please mark it as a best answer :P
Please Let me know whether your problem solved or not
Thanks for the reply but I wnated to use the XML praser I have already done by using String
Thanks,
Saikrishna.Garnepudi