title: xml parsing error syntax error line number 1 column 1 in jquery ajax
body: <p>Following is the code I use for an ajax call. While executing this it gives me an error <strong>xml parsing error syntax error line number 1 column 1</strong> in fiebug. I viewed some questions stating the same problem and they suggested that there was some syntactical problem. I checked again but couldn't find out the real culprit. Please tell me what I am doing wrong.</p>
  <pre><code>  $.ajax({type: &quot;GET&quot;,
              cache: false,
              url: 'url',
              data : 'param1='+ param1val+ '&amp;param2='+param1val,
              dataType: 'json',
              success: function(Obj){
                  if(Some Condition){
                     //Some Code
                  }else{
                    //else code
                  }
              },
     
          });
  </code></pre>
  <p>Here goes some controller code.</p>
  <pre><code>   @RequestMapping(value = &quot;url&quot;, method = RequestMethod.GET)
      public @ResponseBody SomeObject url(@RequestParam(value=&quot;param1val&quot;) String  abc ,@RequestParam(value=&quot;param2val&quot;) String xyz) 
     { //some code}
  </code></pre>
  <p><strong>Edit</strong>
  I added some debugging code to JS and the controller code as well. To my surprise, control executes successful first comes (in JS) and then goes into controller. Is it supposed to happen like this?</p>