I have an XMLList  and I would like to retrieve a node in this list
that contain a specfic attribute.

here is how my XMLlist "conteudo" is organized. trace (conteudo) throws:

<slide id="apresentacao">
  <tit>Apresentação</tit>
  <txt> (....lots of text...)</txt>
</slide>
<slide id="sumario">
  <tit>Apresentação</tit>
  <txt> (....lots of text...)</txt>
</slide>
etc...

I've tried the following ways:

//      gets all nodes that contain the attribue "id".  that is , the same
as trace(conteudo), cause every node contain an
//      "id" attribute. i don't need them all to contain the
attribute, but i've made so, trying to avoid errors. so there a lot of
//      nodes in which the "id" attribute is equal to "" .
//      trace (conteudo.(hasOwnProperty("@id"));

//      this one doesn't throws an error, but doesn't retrieve anything
//      trace (conteudo.(hasOwnProperty("@id" == "apresentacao")));

//      throws the error:       ReferenceError: Error #1065: A variável
apresentacao não foi definida. (variable not defined)
//      trace (conteudo.(hasOwnProperty("@id" == apresentacao)));

//      same reference error...
//      trace (conteudo.(hasOwnProperty(@id == "apresentacao")));

//       why it doesn't work like this? same reference errpr
//      trace ("node i want: " + conteudo.(@id == "apresentacao"));

//      this one doesn't throws an error, but doesn't retrieve anything
//      trace ("vamo ve: " + conteudo.("@id" == "apresentacao"));

//      throws all the attributes "@id" that exist inside the xmllist, 
concatenated
//      trace ("" + conteu...@id);

//      again, here it throws all the attributes "@id" that exist inside
the xmllist , concatenated
//      if (conteudo.(hasOwnProperty("@id" == "apresentacao")))
//      {
//              trace ("tem o id: ");
//              trace (conteu...@id);
//      }

 help please!!

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

Reply via email to