No, not exactly. I want to say: for all elements that have a name 'Book' at
any level give me its someproperty value.

On Mon, Apr 18, 2016 at 11:32 AM Kessler CTR Mark J <
mark.kessler....@usmc.mil> wrote:

> You mean like using dot notation and walking down the nodes or filtering?
> I use somethings similar with some e4x / xmllistcollections.  I just typed
> this off the top of my head so it might need to be checked.
>
>
> var myXml:XML =
> <parent>
>     <Books>
>         <Book name="something1" />
>         <Book name="something2" />
>         <Book name="something3" />
>     </Books>
>     <Magazines>
>         <Magazine someproperty="item1" />
>         <Magazine someproperty="item1" />
>         <Magazine someproperty="item2" />
>         <Magazine someproperty="item2" />
>     </Magazines>
> </parent>;
>
>
> List of books:
> myXml.Books.Book;
>
> List of magazines:
> myXml.Magazines.Magazine;
>
> Match specific items (returns 2 item1 rows):
> myXml.Magazines.Magazine.(@ someproperty == "item1");
>
>
> -Mark
>
>
> -----Original Message-----
> From: mark goldin [mailto:markzolo...@gmail.com]
> Sent: Monday, April 18, 2016 12:02 PM
> To: users
> Subject: [Non-DoD Source] Filtering XML doc
>
> I have a nested XML and I want to select only these elements from it that
> have a specific name at any level.
> How can I do that?
>
> Thanks
>

Reply via email to