2 Replies Latest reply on Jul 3, 2009 6:10 AM by vachik79

    xml to arraycollection ?

    vachik79

      I return an xml string fom an httpService,  the resultFormat="e4x"  for httpService here is the xml string:

       

      <tranches>
           <additionalColumnNames>credit_status;current_face_amount</additionalColumnNames>
           <tranche>
                <id>1</id>
                <securityId>14650</securityId>
                <identifier>PAS_US72269RAD70</identifier>
                <credit_status>current_pay_defaulted</credit_status>
                <current_face_amount>0.0</current_face_amount>

           </tranche>
           <tranche>
                <id>2</id>
                <securityId>12980</securityId>
                <identifier>XS0261422298</identifier>
                <credit_status>current_pay_defaulted</credit_status>
                <current_face_amount>0.0</current_face_amount>
                </tranche>
                <tranche>
                   <id>3</id>
                  <securityId>1297</securityId>
                  <identifier>0</identifier>

                  <credit_status>current_pay_defaulted</credit_status>
                  <current_face_amount>0.0</current_face_amount>

            </tranche>

      </tranches>  

       

      how can I convert this string to an ArrayCollection of tranche objects?