Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by iainn for Convert xml string to json in php

You'll find it a lot easier if you also process the outer SOAP document with SimpleXML, rather than trying to force it into a regex. It might look a bit complicated because of the namespaces, but it's...

View Article


Convert xml string to json in php

I have the fokllowing xml string that i'd like to convert to a json string.Here is the xml in a variable:$output = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"...

View Article

Browsing latest articles
Browse All 2 View Live