Do not trust trace or toString() with XML.  By default it tries to dump
the text content of a XML or XMLList.  Always debug by printing out the
toXMLString().

 

HTH,

-Alex

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Firdosh Tangri
Sent: Wednesday, February 14, 2007 10:41 AM
To: [email protected]
Subject: [flexcomponents] XML query question

 

I have a simple xml

<slide id="366" frameRate="30" totalFrames="150" advance="auto"
type="normal">
                 <cue value="20"/>
                 <content url=" Slide1.swf"/>                         
                <slideTitle>1.Adobe Connect Solutions</slideTitle>

                <slideBackground index="1" frameToPlay="3"
duration="00:10" showAfterFrame="0"/>    
                <notes isHTML="true">
                     Few organizations are untouched by today's
imperative to do business across geographies.
                 </notes>             
</slide>

I load it into an XMLList Object _slides

when I do a 
trace([EMAIL PROTECTED]);   // traces out 20 fine 

when I try  
trace(_slides[0].cue.(@value=='20')); 
or
trace(_slides[0].cue.(@value=='"20"));
or
trace(_slides[0].cue.(@value=='20));

I get nothing ??

thanks
cheers :)
firdosh



 

Reply via email to