有段xml文本,我想把内容分解到表格显示,命令如下:
var myConversion = new XML.ObjTree();
var xmlText = Forguncy.Page.getCell("xmlText");
E1="xmlText"
var initialText = "<root>" + xmlText.getValue() + "</root>";
var jsonData = myConversion.parseXML(initialText);
var finalObject = jsonData["root"]["row"];
var table = Forguncy.Page.getListView("表格1");
for (var i = 0; i < finalObject.length; i++)
{
var temp = finalObject;
table.addNewRow({
"feenoticeno": temp.feenoticeno,
});
}