XML parameters parser for Action Pack (removed from core in Rails 4.0)