I have a XML response from an HTTPService call with the e4x result format.
<?xml version="1.0" encoding="utf-8"?>
<Validation Error="Invalid Username/Password Combination" />
I have tried:
private function callback(event:ResultEvent):void {
if(event.result..@Error) {
// error attr present
}
else {
// error attr not present
}
}
This does not seem to work (it always thinks that the error attribute exits) what is the best way to do this? thanks.
EDIT: I have also tried to compare the attribute to null and an empty string without such success...