Validate .xml url

how to validate a .xml url in Ruby on Rails

Thanks
sumesh