Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

XML TAG ATRIBUTE

Help
2008-09-17
2013-06-06
  • Lluís Segura
    Lluís Segura
    2008-09-17

      Hi all,

      I consume a webservices from a provider using Nusoap.

      When i call a webservice, it returns this estructure:

    ....
      <BOX TYPE="type of box">
        <ITEM>ITEM1</ITEM>
        <ITEM>ITEM2</ITEM>
        <ITEM>ITEM3</ITEM>
      </BOX>
    ....

      In result returned by Call webService, i obtain an array structure as:

      $result["BOX"]["ITEM"]["0"] /* EQUALS ITEM1 */ 
      $result["BOX"]["ITEM"]["1"] /* EQUALS ITEM2 */
      $result["BOX"]["ITEM"]["2"] /* EQUALS ITEM3 */

      But i want to read a TYPE attribute from BOX tag. Is it possible? how?

      Thanks you very much in advance.

      Lluís