convert array to xml #xml array
Edit
by calmedica - 10 years ago (2014-11-20)
I need to convert array to XML
| I want to take an array and convert it to XML format. |
Ask clarification
1 Recommendation
XML Helper: Extract XML data into an array and vice-versa
This class can be used to extract XML data into an array and vice-versa.
It can parse a given XML document and return a nested array that describes the XML document structure and data.
The class can also do the opposite, i.e. take an array with a document structure and data and generate a XML document from it.
A full PHPUnit test suite is included. You'll need to have PHPUnit installed to use it.
| by Manuel Lemos 26695 - 10 years ago (2014-11-30) Comment
There are many, many packages for converting arrays into XML documents.
This one comes with examples, documentation and is unit tested. |