1 Reply Latest reply on Jul 19, 2006 6:10 AM by kvijai

    Error with this<Alien-RFID-Tag-List> kind of  tag format in flex 1.5

    kvijai
      Hi all
      I am trying to display the following XML file which i am getiing from RFID reader when i send the command to reader. I am using flex 1.5.
      ****************************************************************************************** **********************
      <Alien-RFID-Tag-List>

      <Alien-RFID-Tag>

      <TagID>1000 0000 0000 0000</TagID>

      <DiscoveryTime>2006/07/14 12:28:18</DiscoveryTime>

      <LastSeenTime>2006/07/14 12:28:18</LastSeenTime>

      <Antenna>0</Antenna>

      <ReadCount>98</ReadCount>

      </Alien-RFID-Tag>

      </Alien-RFID-Tag-List>
      ****************************************************************************************** *************************
      For this I am using the following codes
      ****************************************************************************************** **************************
      private function onResultAl(oEvent:Object):Void {
      var aResultAl:Array = mx.utils.ArrayUtil.toArray(oEvent.result.Alien-RFID-Tag-List.Alien-RFID-Tag);

      for(var i:Number = 0; i<aResultAl.length; i++){

      _aDPAL.addItem(aResultAl );
      }
      }
      ************************************
      <mx:HTTPService id="aldt" url="aliendata.jsp" result="onResultAl(event)" fault="alert(event.fault.faultstring);" resultFormat="xml"/>

      ************************************
      <mx:DataGrid id="aldg" dataProvider="{_aDPAL}" width="630" height="350">
      <mx:columns>
      <mx:Array>
      <mx:DataGridColumn columnName="TagID" headerText="Tag ID"/>
      <mx:DataGridColumn columnName="DiscoveryTime" headerText="Read Counts"/>
      <mx:DataGridColumn columnName="LastSeenTime" headerText="Reliability"/>
      <mx:DataGridColumn columnName="Antenna" headerText="Antenna No"/>
      <mx:DataGridColumn columnName="ReadCount" headerText="Read Time"/>
      </mx:Array>
      </mx:columns>
      </mx:DataGrid>
      ***************************************************************************************** **********************************
      But if i run then I am getting the error :There is no property with the name 'RFID'.
      Could anybody tell me why the compiler is ignoring after dash in this <Alien-RFID-Tag-List> kind of tag format?
      Thanx
      kvijai