PDA

View Full Version : XML reader catch non xml



kortovos
26 Oct 2010, 3:52 AM
I am using a store with xml reader in combination with an PHP proxy (to avoid origin policy) and a web service whose in and output is XML. Normally this works fine, but when the web service was off line the store didn't receive xml, but an html error from the PHP proxy. I have an exception listener attached to the store, but it didn't fire/catch the error.

Error:

Uncaught #<an Object>

Is there a way to catch 'non xml' from being inputted into an store who is expecting xml?