hai provato a mettere:

***&frammento='+encodeURIComponent(xmlData);