[osflash] E4X question

jake varghese osflash at flvorful.com
Thu Nov 15 08:54:45 PST 2007


i was just about to send that to you.

nice




Jake Varghese
CEO / Lead Developer
Flvorful
www.flvorful.com
office: 877-821-8022 x701
cell: 512-289-3916


Alias™ wrote:
> Aha, xml.parentNode should do the trick.
>
> Thanks for your help!
> Alias
>
> On 15/11/2007, *jake varghese* <osflash at flvorful.com 
> <mailto:osflash at flvorful.com>> wrote:
>
>     do you have an example of the XML you need to parse?  That would
>     help with your example.
>
>
>     thanks.
>
>
>     Jake Varghese
>     CEO / Lead Developer
>     Flvorful
>     www.flvorful.com <http://www.flvorful.com>
>     office: 877-821-8022 x701
>     cell: 512-289-3916
>
>
>     Alias™ wrote:
>>     Thanks Jake.
>>
>>     Cool, that clears things up a bit. My problem is that I need to
>>     find all the items of a certain type in a document, but I also
>>     need to understand their context, because I need to build a tree
>>     structure. Is there any way to get the context of the returned
>>     item? Like an xml equivalent of movieclip.parent ?
>>
>>     Or maybe I should just make my own recursive function and do
>>     that. Gah. I hate recursion...
>>
>>     Cheers,
>>     Alias
>>
>>     On 15/11/2007, * jake varghese* <osflash at flvorful.com
>>     <mailto:osflash at flvorful.com>> wrote:
>>
>>         Hi Alias,
>>
>>
>>         It is a deep, recursive search. 
>>
>>         Example:
>>
>>         document..item
>>
>>         That will find all <item> nestings in the XML document.
>>
>>         You can limit the search by recursing farther down.
>>
>>         *document.orders..item
>>         *will find all *items* that are nested inside of an *order *tag.
>>
>>
>>         hope that helps.
>>
>>
>>         Thanks,
>>
>>
>>         Jake Varghese
>>         CEO / Lead Developer
>>         Flvorful
>>         www.flvorful.com <http://www.flvorful.com>
>>         office: 877-821-8022 x701
>>         cell: 512-289-3916
>>
>>
>>         Alias™ wrote:
>>>         Hi guys,
>>>
>>>         Sorry if this is a stupid question, but I'm finding it hard to get a
>>>         straight answer on this.
>>>
>>>         The ".." operator in E4X, yeah?
>>>
>>>         What's going on there? Is it a deep recursive search, a single level
>>>
>>>
>>>         search, or what? Does it go through the whole document, or is it only
>>>         for the descendants of the current context? The documentation is so
>>>         vague and the W3C spec isn't much help either..
>>>
>>>         thanks in advance,
>>>
>>>
>>>         Alias
>>>
>>>         _______________________________________________
>>>         osflash mailing list
>>>         osflash at osflash.org
>>>          <mailto:osflash at osflash.org>
>>>
>>>         http://osflash.org/mailman/listinfo/osflash_osflash.org
>>>
>>>           
>>
>>         _______________________________________________
>>         osflash mailing list
>>         osflash at osflash.org <mailto:osflash at osflash.org>
>>         http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     osflash mailing list
>>     osflash at osflash.org <mailto:osflash at osflash.org>
>>     http://osflash.org/mailman/listinfo/osflash_osflash.org
>>       
>
>     _______________________________________________
>     osflash mailing list
>     osflash at osflash.org <mailto:osflash at osflash.org>
>     http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20071115/63c04e30/attachment-0001.html 


More information about the osflash mailing list