hi paul
your way to do to that wokk fine but i need the complete object xml
for example  child("koala").(text()=="Y") and this returns this
<item>
 <prueba>sambil</prueba>
 <koala>Y</koala>
 </item>

i did it this way
var va:String="koala";
var va2:String="Y";
myDataProvider.data.item.(elements(va)==va2)
and works fine 
then if you wanna an especified child of this xml you can use child method

myDataProvider.data.item.(elements(va)==va2).child("prueba");

thanks



--- In flexcoders@yahoogroups.com, Paul deCoursey <[EMAIL PROTECTED]> wrote:
>
> .item.child("koala").(text()=="Y")
> 
> 
> 
> figo2324 wrote:
> >
> > Hi people, i need your help, i have a xmllist object so i need to
> > query this xmllist, im doing it in this way
> >
> > var jo:XMLList=myDataProvider.data.item.(koala=="Y");
> >
> > where myDataProvider.data =
> > <data>
> > <item>
> > <prueba>ccct</prueba>
> > <koala>X</koala>
> > </item>
> > <item>
> > <prueba>sambil</prueba>
> > <koala>Y</koala>
> > </item>
> > </data>
> > then the structure of this xmllist can be changes it means that when
> > i wanna to query it using this sentences var
> > jo:XMLList=myDataProvider.data.item.(koala=="Y");
> > The param koala have been changed, then i need that this param be a
> > variable so i dont know how to do that...
> >
> > for example
> >
> > var variable:String="koala";//
> > var jo:XMLList=myDataProvider.data.item.(variable=="Y");
> > but it doesnt works, i dont know how to pass a variable in this
> > sentence,
> > i tried it
> > var jo:XMLList=myDataProvider.data.item.([variable]=="Y");
> > and
> > var jo:XMLList=myDataProvider.data.item.({variable}=="Y");
> > but it didnt work
> > some suggestion please, im stuck in that
> > Thanks coders...
> >
> >
>


Reply via email to