Open adevapp opened 9 years ago
+1
+1
+1
+1
I found solution:
$formatter = Formatter::make($response, Formatter::ARR);
$res = $formatter->toXml();
$res = str_replace('<xml>', '', $res);
$res = str_replace('</xml>', '', $res);
Now $res contains response without xml tags
When converting an array to XML, the package seems to add an extra XML tag.
Is coming out with an XML open and close tag around the array.
How can I convert without this being added?