Hi, all, I have used following code to parse XML file, it works very well for firefox, but not for IE. Can any one told me why and solution ? Thanks!
(rXml).find("wired_port").each(function() { var o=new Object(); o.port=$("number",this).text(); o.mac_address=$("mac_addr",this).text(); var enabled=$("enable",this).text(); var interface_status=$("interface_status",this).text(); var link_status=$("link_status",this).text(); if(link_status==1) o.status ="Connected"; else if(interface_status == 1) o.status = "Link Down"; else if (enabled== 0) o.status = "Disabled"; else o.status = "Error"; var speed=$("speed",this).text(); var auto_neg=$("auto_neg",this).text(); if(auto_neg==1) o.speed=speed+"(auto)"; else o.speed=speed; var duplex=$("duplex",this).text(); if(duplex==0) o.duplex_type="Half"; else o.duplex_type="Full"; o.fwd_mode=rap_util.formatFwdMode($("fwd_mode",this).text()); o.wired_port_empty=""; o.user=$("user_count",this).text(); o.tx_packets=rap_util.formatPackets($("tx_packets",this).text()); o.rx_packets=rap_util.formatPackets($("rx_packets",this).text()); wiredPorts.push(o); });