>>Kenneth - no, what I mean is, your examples aren't pointing >>to any XML instance at all
Disregard that last post - see my follow up on it instead. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Merrill, Jason >>Sent: Monday, July 21, 2008 10:08 AM >>To: Flash Coders List >>Subject: RE: [Flashcoders] E4X filtering strange behaviour >> >>>>>>> Also this is shorter: >>>>>>> var xmlListSearch:XMLList = test..topic.(re.test(@title)); >> >>>>If we don't know anything about the XML we could do something like: >>>> >>>>var xmlListSearch:XMLList = >>>>test..*.(re["test"](attribute("*")) || re["test"](child("*"))); >> >>Kenneth - no, what I mean is, your examples aren't pointing >>to any XML instance at all (that I could see anyway, maybe >>you could point it out), so how in the world can the AVM know >>what you're referring to in order to search though and make >>an XMLList from? >> >>Jason Merrill >>Bank of America >>Enterprise Technology & Global Risk L&LD Instructional >>Technology & Media >> >>Join the Bank of America Flash Platform Developer Community >> >>Are you a Bank of America associate interested in innovative >>learning ideas and technologies? >>Check out our internal GT&O Innovative Learning Blog & subscribe. >> >> >> >>>>-----Original Message----- >>>>From: [EMAIL PROTECTED] >>>>[mailto:[EMAIL PROTECTED] On Behalf Of >>>>Kenneth Kawamoto >>>>Sent: Saturday, July 19, 2008 6:19 AM >>>>To: Flash Coders List >>>>Subject: Re: [Flashcoders] E4X filtering strange behaviour >>>> >>>>The code was based on your example and therefore we know the XML >>>>schema, i.e. we know the node name and they all have the attribute >>>>"title". >>>> >>>>If we don't know anything about the XML we could do something like: >>>> >>>>var xmlListSearch:XMLList = >>>>test..*.(re["test"](attribute("*")) || re["test"](child("*"))); >>>> >>>>Kenneth Kawamoto >>>>http://www.materiaprima.co.uk/ >>>> >>>>Merrill, Jason wrote: >>>>> Thanks. However, I have been told using @title is not >>good in most >>>>> situations because it will return an error if a node >>>>doesn't have the >>>>> attribute, wheras attribute("title") will not. >>>>> >>>>>>> Also this is shorter: >>>>>>> var xmlListSearch:XMLList = test..topic.(re.test(@title)); >>>>> >>>>> But you still need to specify what XML to search through, >>no? How >>>>> would the above know what XML object topic is within using >>>>the code above? >>>>> >>>>> Jason Merrill >>>>> >>>>_______________________________________________ >>>>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

