flex services xml core taxonomy

Events happening in the community are now at Drupal community events on www.drupal.org.
SamRose's picture

Problem with using taxonomy_select_nodes to create xml

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>
Read more
Subscribe with RSS Syndicate content