skip to Main Content

Laravel – Difficulties in extracting content from a SimpleXMLElement

I have this xml bellow : "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>For input string: ""</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>" I want to get the content of Body > Fault > faultcode, faultstring But idk why doens't work My source code : $xml = "<?xml version='1.0'…

VIEW QUESTION

XSLT replacing Json with plain text equivelent

ish at XSLT and have a XSLT output that contains some json within elements. I've been looking around to see if there is anyway for XSLT to replace the json with just a string: Ex: <company:Cause xmlns:company="http://example.com/company" xmlns:j="http://example.com/j" xmlns:s="http://example.com/s" xmlns:nc="http://example.com/nc"…

VIEW QUESTION

Javascript – How to parse in Postman body response from XML format

Using POST request in Postmat I received a body response as XML data like this. <?xml version='1.0' encoding='UTF-8'?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:getAuthenticationTokenResponse xmlns:ns2="http://some_url.com" xmlns:ns3="http://some_url.com"> <return>111222333</return> </ns2:getAuthenticationTokenResponse> </S:Body> </S:Envelope> And I need to get somehow value 111222333 as a collection variable.…

VIEW QUESTION
Back To Top
Search