Hash.from_xml handle argument errors

For example for type date is able to handle invalid values for example:

a invalid date

I understand that this is not a valid XML but it is a real case which I wish parse with Hash.from_xml

I didn’t created the PR yet because I understood that the patch should be accepted by the rubyonrails-core mailing list

https://github.com/rails/rails/compare/master...ceritium:hash-from-xml-handle-argument-error?expand=1

Best regards!