This content has been marked as final. Show 6 replies
In your treeChanged function, try doing Alert.show or trace (selectedNode), and post what it gives you. It does seem strange that you're not getting the @id property, but you should be able to see why if you look at the XML node.
Hi Westside, i got a quite similar problem with a <id></id> node in my XML.
my xml looks like this:
var metaData:XMLList = myxml.item.(creation=="lastmonday") -> 1 result
var metaData:XMLList = myxml.item.(id=="12345xyz") -> 0 result (!!)
This is very very annoying, i cannot identify the item node by it's <id> child now!
I can guess Flex has a problem with the term "id" because id is a general object property, but this really should not
Would be nice if you could post a solution for this problem when you find one.
Dzihan - have a look at this posting - it may be the source and solution to your problem: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1242129">h ttp://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1242129
thanks for your reply. I recognized that thread but i can not figure out how it can help me. Do you mean i shall try a regular expression on it? I don't know much about regExpressions :(.
Can you maybe point me to the right direction?
I ended up renaming it to "contactId" or whatever, just not using "id" as an attribute in my xml. That seemed to work.
Won't be that easy for me...