Hello,

 

I've got a (seemingly) tricky XML issue that I need some advice on.

 

I've got an XML tree that is the DataProvider for a Tree Control in my
application.

 

I need to sometimes find all of the nodes in this Tree with a certain
ATTRIBUTE VALUE regardless of the NAME of the Node.  For Example, here's an
example XML  (I know it's a dumb example, but I tried to come up with a
SIMPLE XML that shows the problem I'm trying to solve:

 

myXML:XML=new XML(<Body overbudget=true>

            <Room name='kitchen' overbudget =true>

                        <Door kind="Pantry" overbudget =false/>

                        <Door kind="Entry" overbudget =false/>

                        <Window kind="Slider" overbudget =true/>

</Room>

<Room name = 'bedroom1' loaded=true>

                        <Door kind="Closet" overbudget =true/>

                        <Door kind="Entry" overbudget =false/>

</Room>

</Body>);

 

I now want to find all nodes that are OVERBUDGET, no matter whether it's a
door or a window or an overall room, etc, so I'm trying to do:

 

 

myList:XMLList=myXML..(@overbudget==true);

 

But I get an error on this.

 

Can anyone suggest the proper syntax to do what I need?

 

 

Thanks in advance.

 

 

Steve

 

 

Steve Kellogg

Peak8 Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax: 303.415.2597

E-Mail: [EMAIL PROTECTED]

 

Reply via email to