RES: [flexcoders] Re: show xml node

2006-10-19 Thread Fabio Barreiro












Hii

 

Thanks  Tobias, but the
answer is not that

I got the solution from
another group

 

I have to use a XMLList
object in other to be able to access the XML structure

 

var xmlList:XMLList =
xmlMenu.categoria;

 

…then…

 

 

for each(var categ:Object
in xmlList){

Alert.show([EMAIL PROTECTED]());

}

 









De: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] Em nome
de tobiaspatton
Enviada em: quinta-feira, 19 de
outubro de 2006 14:08
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Re: show xml
node



 







To get the length of an XMLList object call the
"length()" function, 
no the "length" property.

In your case: Alert.show( xmlMenu.itens.categoria.length() )

Tobias.

--- In [EMAIL PROTECTED]ups.com,
"Fabio Barreiro"
...> 
wrote:
>
> Guys, I have a doubt..
> 
> Why does the code below is not working?
> 
> And how to show a node attirbute?
> 
> 
> 
> http://www.adobe.com/2006/mxml"

layout="absolute"
> initialize="mostra()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> >
> 
> 
> 
> >
> 
> 
> 
> 
> 
> 
> 
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] Re: show xml node

2006-10-19 Thread tobiaspatton
To get the length of an XMLList object call the "length()" function, 
no the "length" property.

In your case: Alert.show( xmlMenu.itens.categoria.length() )

Tobias.

--- In flexcoders@yahoogroups.com, "Fabio Barreiro" <[EMAIL PROTECTED]> 
wrote:
>
> Guys, I have a doubt..
> 
> Why does the code below is not working?
> 
> And how to show a node attirbute?
> 
>  
> 
> http://www.adobe.com/2006/mxml"; 
layout="absolute"
> initialize="mostra()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: show xml node

2006-10-19 Thread Oscar



Try something like this:
   public  function mostra():void {


  trace(xmlMenu.length());  trace(xmlMenu.categoria.length());   trace([EMAIL PROTECTED]);
  for each (var property:XML in xmlMenu.categoria) {  var q:String = [EMAIL PROTECTED];     trace (q);  }  
    }
 Note that you do not need the 'itens' prefix and that length is amethod not a property of the XML object.   
  You can check more examples at :
http://livedocs.macromedia.com/flex/2/langref/XML.html
Oscar.--- In flexcoders@yahoogroups.com, "Fabio Barreiro" <[EMAIL PROTECTED]> wrote:>> Guys, I have a doubt..> > Why does the code below is not working?> > And how to show a node attirbute?> > > > > initialize="mostra()">> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___