Give this a try -- worked for me : )

var x:XML = new XML("<all><p id='1'><s>dog</s></p><p
id='2'><s>cat</s></p><p id='3'><s>bird</s></p><p
id='4'><s>dog</s></p><p/></all>") ;
var animal:String = "dog" ;
var list:XMLList = x.p.(child('s').text()[0] == animal) ;
trace(list.toXMLString())

// traces...

<p id="1">
  <s>dog</s>
</p>
<p id="4">
  <s>dog</s>
</p>

Jer
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to