Hi,

I guess you might have solved this for now - for future reference, I have found the following 2 sources invaluable links when doing e4x stuff...

   http://www.linkwerk.com/pub/javascript/e4x/e4x-tester/

(It's JavaScript / HTML, but it is a better / fuller implementation than the BetaBong one http://blog.betabong.com/showcase/e4x/E4X_Parse_Test.html)

   http://dispatchevent.org/roger/as3-e4x-rundown/ - invaluable article.

As an aside / example of XML & e4x - I found the real power of this system recently. I had been using an XML config file as a data model to configure my interface - my Application loads XML, creates "Screens" with each <screen> tag in <config> and each Screen created "Buttons" with each <button> tag. When asked to create a CMS, I created an "Editor" class to modify the <button> XML in the Buttons - because this XML had been passed by reference by looping through the main config file, changing the <button> xml is actually reflected in the <config> - i.e. I could resave the XML file by dumping the <config> XMl which has all the edits. For me, that's the big clincher which makes all this XML & e4x totally worthwhile - of course you can do it with other data types, but XML is editable by anyone with half a brain so it's a happy medium and once you get past some of the quirks, it's not bad to work with and saves coding up model classes for simple projects, etc.

    HTH a little
Glen

Lehr, Theodore wrote:
it does - based on the last condition.... How can I "query" the xml using 
multiple conditions?

________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Henrik Andersson 
[[email protected]]
Sent: Friday, August 06, 2010 12:40 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Querying XML

Lehr, Theodore wrote:
I am trying:

buildXML = peopleXML.person.(@group == dd_group.value.toString())&&  
peopleXML.person.(@room == dd_room.value.toString());


I am surprised that it even returns an XMLList, wait, does it?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to