ciao!

i have some problem querying xml docs with flex as3,
can anyone tell me where there are good tutorials or examples about
this subject?...my only reference is "working with XML" of
"prog_actiopnscript30.pdf", but unfortunately is not much detailed:-(

actually my problem is retrive the variable of equation y=ax+b

that means I need tho retrive:
     <void method="add"> 
      <string>b</string> 
     </void> 
     <void method="add"> 
      <string>a</string> 
     </void> 
     <void method="add"> 
      <string>x</string> 
     </void> 
....
b
a
x


the xml is the following:


<?xml version="1.0" encoding="UTF-8"?> 
<java version="1.6.0" class="java.beans.XMLDecoder"> 
 <object class="java.util.ArrayList"> 
  <void method="add"> 
   <object class="IndicatorFunction"> 
    <void property="equation"> 
     <string>y=ax+b</string> 
    </void> 
    <void property="label_en"> 
     <string>first indicator</string> 
    </void> 
    <void property="variable"> 
     <void method="add"> 
      <string>b</string> 
     </void> 
     <void method="add"> 
      <string>a</string> 
     </void> 
     <void method="add"> 
      <string>x</string> 
     </void> 
    </void> 
   </object> 
  </void> 
  <void method="add"> 
   <object class="IndicatorFunction"> 
    <void property="equation"> 
     <string>y=ax</string> 
    </void> 
    <void property="label_en"> 
     <string>second indicator</string> 
    </void> 
    <void property="variable"> 
     <void method="add"> 
      <string>a</string> 
     </void> 
     <void method="add"> 
      <string>x</string> 
     </void> 
    </void> 
   </object> 
  </void> 
 </object> 

</java> 




thanks, Lorenzo

Reply via email to