[Flashcoders] accessing a text node inside another node in a XMLList

2009-08-28 Thread Isaac Alves
Hello list,

I have the following XML ( i get that by tracing
tabsContentSlideshow which is a XMLList.
I-d like to use something like

tabsContentSlideshow[slide][1]

slide is an integer, so for example, if the slide 2 is showing, this
statement would return the first node item inside the second node
slide, that is:

  item label=ss1_title link=# type=_selfSLIDE 2/item

but it doesn´t work like that.
how could I do it ??

thanks in advance !


slide
  item label=ss1_title link=# type=_selfCONECTE-SE/item
  item label=ss1_subtitleBem-vindo ao Conecte-se!/item
  item label=ss1_textAqui você encontra vida! Grupos pequenos,
células, que se reúnem semanalmente. Nós oramos e desejamos que você
desenvolva bons relacionamentos, um propósito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!/item
/slide
slide
  item label=ss1_title link=# type=_selfSLIDE 2/item
  item label=ss1_subtitleBem-vindo ao slide 2/item
  item label=ss1_textAqui você encontra vida! Grupos pequenos,
células, que se reúnem semanalmente. Nós oramos e desejamos que você
desenvolva bons relacionamentos, um propósito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!/item
/slide
slide
  item label=ss1_title link=# type=_selfSLIDE 3/item
  item label=ss1_subtitleBem-vindo ao slide 3/item
  item label=ss1_textAqui você encontra vida! Grupos pequenos,
células, que se reúnem semanalmente. Nós oramos e desejamos que você
desenvolva bons relacionamentos, um propósito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!/item
/slide

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


Re: [Flashcoders] accessing a text node inside another node in a XMLList

2009-08-28 Thread Taka Kojima
tabsContentSlideshow.children()[slide].children()[1]

2009/8/28 Isaac Alves isaacal...@gmail.com

 Hello list,

 I have the following XML ( i get that by tracing
 tabsContentSlideshow which is a XMLList.
 I-d like to use something like

 tabsContentSlideshow[slide][1]

 slide is an integer, so for example, if the slide 2 is showing, this
 statement would return the first node item inside the second node
 slide, that is:

  item label=ss1_title link=# type=_selfSLIDE 2/item

 but it doesn´t work like that.
 how could I do it ??

 thanks in advance !


 slide
  item label=ss1_title link=# type=_selfCONECTE-SE/item
  item label=ss1_subtitleBem-vindo ao Conecte-se!/item
  item label=ss1_textAqui você encontra vida! Grupos pequenos,
 células, que se reúnem semanalmente. Nós oramos e desejamos que você
 desenvolva bons relacionamentos, um propósito, envolvimento e encontre
 alegria. Vamos servir ao Senhor juntos!/item
 /slide
 slide
  item label=ss1_title link=# type=_selfSLIDE 2/item
  item label=ss1_subtitleBem-vindo ao slide 2/item
  item label=ss1_textAqui você encontra vida! Grupos pequenos,
 células, que se reúnem semanalmente. Nós oramos e desejamos que você
 desenvolva bons relacionamentos, um propósito, envolvimento e encontre
 alegria. Vamos servir ao Senhor juntos!/item
 /slide
 slide
  item label=ss1_title link=# type=_selfSLIDE 3/item
  item label=ss1_subtitleBem-vindo ao slide 3/item
  item label=ss1_textAqui você encontra vida! Grupos pequenos,
 células, que se reúnem semanalmente. Nós oramos e desejamos que você
 desenvolva bons relacionamentos, um propósito, envolvimento e encontre
 alegria. Vamos servir ao Senhor juntos!/item
 /slide

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

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