3 Replies Latest reply on Oct 22, 2007 7:36 AM by Peter deHaan

    Navigation into XML results of HTTPService with a minus character

    MStolze
      As a result of an HTTP call I receive an XML structure

      <pre>
      <dsml>
      <directory-entries>
      <entry>
      ....
      </entry>
      <entry>
      ....
      </entry>
      </directory-entries>
      </dsml>

      I want to bind to the "entry" nodes but the problem is that

      private function bluePagePersonListHandler(event:ResultEvent):void{
      personList = event.result.dsml.directory-entries.entry as ArrayCollection;
      }

      does not compile

      Error: access of undefined property entries

      private function bluePagePersonListHandler(event:ResultEvent):void{
      personList = event.result.dsml.directoryentries.entry as ArrayCollection;
      }

      does compile, but does not do the right navigation

      also

      private function bluePagePersonListHandler(event:ResultEvent):void{
      personList = event.result.dsml.directory&045entries.entry as ArrayCollection;
      }

      does not work....

      any suggestions?