Is the myXML part also considered data that's part of your XML? I
think by setting 'processData' to false means it is. If you set it to
true (default), myXML will be the name set for the variable (your
XML).
Try setting processData to true (or just removing that line).

Also, what happens if you try:
params = "<zone id='234'>asdf</zone>";

And then in $.ajax:
data: {myXML:params},

This separates the name and value a bit more clearly, in my opinion.

On Mar 26, 1:58 pm, Karen <kuts...@gmail.com> wrote:
> Hi,
> I am using $.ajax POST to send some XML string to the server side code
> (ASP page).
>
> However, when I try to load the XML string into XMLDocument in the ASP
> page , I get an error saying "Invalid character".  :(
>
> If I changed the method to "GET", it works just fine.
>
> Any ideas? Help....
>
> params = "myXML=<zone id='234'>asdf</zone>";
>
> $.ajax({
>         url: 'getMeDataWithThisXML.asp',
>         type: 'POST',
>         data: params,
>         processData: false,
>         cache:false,
>         async: true,
>         success: function(result) {
>                         xmlObj = result;
>
>                         alert(result.xml);
>
> Thanks a lot,
> Karen

Reply via email to