This content has been marked as final. Show 7 replies
That didn't work. I tried event.result["med-condition"]["abnormal-weight"]
the easiest approach would be to set up a breakpoint and use the debugger to pause inside the event handler and check what event.result actually contains. hard for me to tell as i'm not sure which event you're trapping.
if <med-condition> is the root tag, however, and event.result is the xml object, then to arrive at abnormal-weight tag, you would use:
I tried to work this out but could not. I hope someone else shows how to do this, if it can be done.
greg can you go into your problem in more detail?
if your problem is how to get to a tag with a hyphen in it, then as i described earlier, the solution is to use square brackets.
for example, if your xml document is:
then you can use:
is this line included
<?xml version="1.0" encoding="utf-8"?>
I would first suggest using the debugger to to inspect the value of event.result...
add a line like this to make it easy:
var result:XML = XML(event.result);
and set a break point on the line and then, when it catches there step past it and inspect the value of result, perhaps it's not what you expect?
Barring that can you make just a small example (with the failure) and post the source code?
Here's a snippet using just an XML object and a button that displays the values of the xml with hyphens..