# Sending XML from Javascript

**URL:** <https://www.ruby-forum.com/t/sending-xml-from-javascript/115815>\
**Category:** Rails\
**Created:** [September 28, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/sending-xml-from-javascript/115815 "2007-09-28T19:07:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Griffin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7cd45c/32.png) [@Chris\_Griffin](https://www.ruby-forum.com/u/Chris_Griffin)\
**Post date:** [September 28, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/sending-xml-from-javascript/115815/1 "2007-09-28T19:07:25Z")

</div>

I am using Ajax to send XML to an action in one of my controllers. In  
Firefox I can see that the XML is being sent. The Content-Type is text/  
xml. This is the XML I am sending:

\<?xml version="1.0" encoding="UTF-8"?\> 09/26/07 Chris Griffin 123 Main St. Anytown MA (201) 555-1234 true 

Looking at the request var. I can see that RAW\_POST\_DATA =\> “\<\>”. However it doesn’t show up in params. The action is getting  
called. Isn’t rails supposed to recognize the XML and create a hash  
from it?
