Problem with using taxonomy_select_nodes to create xml
Posted by SamRose on October 8, 2008 at 9:18pm
Writing an app in adobe flex 3 getting data from http://drupal.org/project/services module (and amfphp)
Get data from services module as array calling taxonomy_select_nodes
Using simpleXMLEncoder.encodeValue() to convert result array into XML
resulting XML is incorrectly formatted:
<root>
<item>
<some nodes>
<taxonomy>
<25>
<description/>
<name>who</name>
<tid>25</tid>
<vid>5</vid>
<weight>0</weight>
</25>
<4>
<description/>
<name>Institutional Changes</name>
<tid>4</tid>
<vid>1</vid>
<weight>-10</weight>
</4>
</taxonomy>
</some nodes>
</item>
</root>