JQuery operate xml

msg is

<?xml ?>

<Parameters>

  <WorkflowName>...</WorkflowName>

</Parameters>

<Parameters>

...

</Parameters>

var arr=$(msg).find('Parameters');
var workflowName="";
$(arr).each(function(){
workflowName+=$(this).children("WorkflowName").text()+";"
});

posted @ 2018-01-17 10:35  Javi  阅读(628)  评论(0编辑  收藏  举报