4 Replies Latest reply on Jun 15, 2011 5:00 PM by majester8425

    Need help in building XML file based on arrayCollection example

    majester8425 Level 1
      I have an arraycollection as shown below which works perfectly. All I want to do is use XML from my database and read that into an arraycollection. That I can do easily, but the XML format must be wrong as the multiple items under SR_NM_ROW do not display.
      private var dpHierarchy:ArrayCollection = new ArrayCollection([
      {DB_NM:"ICR", NAGIOS_FLAG: true, PROD_FLAG: true, SVR_NM_ROW: [
      {SVR_NM:"APRDB607N1"},
      {SVR_NM:"APRDB607N2"},
      {SVR_NM:"APRDB607N3"}]},
      {DB_NM:"ICRDEV", NAGIOS_FLAG: false, PROD_FLAG: false, SVR_NM_ROW: [
      {SVR_NM:"ADRDB339N1"},
      {SVR_NM:"ADRDB339N2"}]}
      ]);
      This is the database generated XML. It has to be wrong and not correctly reflecting the hard coded version of the arraycollection
      <ROW>
      <D_ID>748</D_ID>
      <D_NM>ICR</D_NM>
      <N_FLAG>true</N_FLAG>
      <P_FLAG>true</P_FLAG>
      <SR_NM_ROW>
      <SR_NM>APRDB607N1</SR_NM>
      <SR_NM>APRDB607N2</SR_NM>
      <SR_NM>APRDB607N3</SR_NM>
      </SR_NM_ROW>
      </ROW>