mardi 3 février 2015

Read xml in infopath using javascript



I want to read xml inside the infopath form. I am saving all infopath forms after submitting into a form library. Now I want to read the xml inside that. I am doing like following,



$(function(){
$.ajax({
type:"GET",
url:"/sites/mysite/DemandRequests/DR_37.xml",
contentType:'xml',
success:function(xmlContent){
console.log(xmlContent);
},
error:function(){
console.log('failed');
}
});
});


Content is coming as pure html. I am not finding any xml init. How to read only xml?








0 commentaires:

Enregistrer un commentaire