I am trying to write a XML file with Zend_Config_Writer_Xml. I found out a problem that I can’t write multiple items under a root. I would like to do,
<root>
<item name="test"></item>
<item name="test2"></item>
</root>
I can’t find a method to do this on zend documentation.
Please advise me.
Standard writer doesn’t do exactly that, but it works like this: if you do:
then what you get is:
I don’t think standard writer does attributes, you’d need to override it for that.