authenticate_or_request_with_http_basic & xml

Hello,

  authenticate_or_request_with_http_basic method want to render this for me {:status=>:unauthorized, :text=>"HTTP Basic: Access denied. \n"}, but i want to render xml. how can i do it?

thx