I’m using RoR as a web service to upload data. Unfortunately I’m often
passed poorly formatted XML (it’s written by users, not by machine)
and it often contains errors.
The XML parser that tries to turn the XML into parameters barfs at
some errors (e.g. mismatched opening and closing elements) and I
cannot see how to trap this error and report something meaningful to
the user. At the moment they get a stacktrace or an internal error
Has anyone else come across this problem?
How can I trap these errors for myself?