Friday, March 9, 2018

Spatie – Array-to-XML not returning valid XML - development

Spatie – Array-to-XML not returning valid XML

I’m using Array-to-XML in Laravel. I’m getting an XML response but what is happening, it includes XML version two times in the response.

In the first version specification it has,

<?xml version="1.0" encoding="utf-8"?>

And in second it has,

<?xml version=&quot;1.0&quot;?>

And this format is causing problem in parsing XML correctly while handling SOAP responses.



from Laravel Questions and Answers https://laravelquestions.com/php/spatie-array-to-xml-not-returning-valid-xml/
via Lzo Media

No comments:

Post a Comment