I need to create an Ajax proxy and XMLReader to parse XML from a legacy server API. The server's XML responses have a success element, but it is not of the form <success>true</success>. Instead, each response has a <status>success</status> or <status>error</status> element. It seems I can't use XMLReader's successProperty config to notify my store of an error, correct? If not, do I just need to do my own custom error processing by parsing out the <status> element in the response?
Here are examples of success and error:
Code:<rest generator="xml_writer" version="1.0"> <status>error</status> <message>Already logged in as demo.</message> </rest>
Code:<rest generator="xml_writer" version="1.0"> <status>success</status> <response> <sessid>*****</sessid> <user> <uid>0</uid> <hostname>****</hostname> <roles> <item id="1">anonymous user</item> </roles> </user> </response> </rest>