skip to Main Content

Parse xml child and namespace with PHP

I need to read a specific xml child from the following xml: <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <exp:Input xmlns:exp="http://exportservice.domest.sogei.it"> <exp:serviceId>Send item text</exp:serviceId> <exp:data> <exp:xml>textcontent</exp:xml> <exp:dichiarante>AXB17735</exp:dichiarante> </exp:data> </exp:Input> </soapenv:Body> </soapenv:Envelope> what i need is to read the child…

VIEW QUESTION

Laravel – How to display "view" with XML file?

Oh, how ridiculously I formulated the question)) I’ll try in more detail. I have a route: Route::get('/parsers/settings/{id}', [AdminParserController::class, 'settings']) ->where('id', '[0-9]+') ->name('parsers::settings'); Then I select the required element from the XML file and convert it to a string: $xml =…

VIEW QUESTION
Back To Top
Search