Aha, xml.parentNode should do the trick.

Thanks for your help!
Alias

On 15/11/2007, jake varghese <[EMAIL PROTECTED]> 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
> 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 <[EMAIL PROTECTED]> 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
> > 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
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> > _______________________________________________
> > osflash mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> ------------------------------
>
> _______________________________________________
> osflash mailing list
> [EMAIL PROTECTED]://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to