摘要: function xmlToJson(xml) { // Create the return object var obj = {}; if (xml.nodeType == 1) { // element // do attributes if (xml.attributes.length > 0) { obj["@attributes"] = {}; for (var j = 0; j < xml.attributes.length; j++) { var attribu... 阅读全文
posted @ 2012-08-28 15:25 火拳阿飞 阅读(547) 评论(0) 推荐(0) 编辑