I want address an xml object with .(@ attributeNameHere == "textToSearchForHere") and have it return the node it’s associated with.
This is the text from the adobe help site and it’s similar to my actual code. I’m querying this xml object: staticVar.employee.(@id=="347"). FlashBuilder 4.7 is returning an error “No such variable: @id”. when I look in debugger.
This example is found in Adobe's help site: Adobe Flash Platform * Traversing XML structures
The help site says
The following expressions are all valid:
public var staticVar:XML =
<position>Jr. data analyst</position>
I’m expecting this: staticVar.employee.(@id=="347") will return the following node:
If this is the wrong, then what is the correct way to access the xml node based on an attribute? How can i get that node 347 in this example to be found and returned? I've opened a ticket with the adobe help team and we're on the 8th day and they have not been helpful at all.