Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
All requests | > | What is the best PHP array to xml class? | > | Request new recommendation | > | Featured requests | > | No recommendations | ||
by zeeshan - 10 months ago (2015-04-16) array to xml
+1 | I am looking for a class to generate XML from the multi dimensional array. |
+2 | by Manuel Lemos 11100 - 6 months ago (2015-08-16) Comment There are so many classes for that purpose that it is hard to recommend one. This one seems to provide a very extensive set of features that you may not need but may be useful in other contexts. |
1. by martin barker - 5 months ago (2015-08-21) Reply
The problem with this Request is the distinction i think QXML is a good one for it but if you pass an array and want it converting to XML are the values to be an attribute of the tag or another tag inside the tag
E.G (array("test" = > array("attr" = 1, "value" = 2));
Could be <test><attr>1</attr><value>2</value></test> or <test attr="1"><value>2</value></test> or <test attr=1 value="2"/>
2. by Manuel Lemos - 5 months ago (2015-08-21) in reply to comment 1 by martin barker Reply
Yes, the array must have a specific structure if you want to generate both children tags and attributes.
Recommend package | |
|