FireFox ÖÐjs ¶ÁXMLÎÊÌâ
ÊÇÕâÑùµÄ
СµÜÏëÓÃjavascript¶Áxml
»ù±¾ÒѾʵÏÖ
µ«¶ÔÓÚÕâÑùµÄ½Úµã
Èç
<news> <span style="color:red">11111 </span> </news>
IEÖпÉÒԵõ½ newsÕâ¸ö½Úµã ÔÙ²ÉÓà .xmlÕâ¸öÊôÐÔÀ´µÃµ½½ÚµãµÄÔÑùÄÚÈÝ
ÇëÎÊ firefoxÈçºÎʵÏÖ
JScript code:
if(!document.all)
{XMLDocument.prototype.__defineGetter__("xml",function(){return new XMLSerializer().serializeToString(this)}) }
²Î¿¼ http://www.jb51.net/article/5437.htm
лл¥ÉÏ È¥ÊÔÊÔ
Ϊʲô¼ÓÔØÍⲿXML¾Í²»ÐÐÁË
¿ÉÒÔÁË Ð»Ð»Äã
Ïà¹ØÎÊ´ð£º
vbÖÐÔõôͨ¹ýxmlÀ´½âÎöÊý¾Ý¿âÖеÄ×Ö¶ÎÖµ¡£
û°ì·¨ÓÃXML½âÎöÊý¾Ý¿âµÄ×Ö¶ÎÖµ£¬³ý·ÇÊý¾Ý¿âÖб£´æµÄÊÇXML¸ñʽµÄ×Ö·û´®Îĵµ¡£
XMLÓÃÀ´Õ¹Ê¾²ã´ÎµÄÊý¾Ý¡£
Êý¾Ý¿âÒ»°ãÊǶþάÊý¾Ý¡£
Êý¾Ý¿âÖб£´æµÄÊÇXML×Ö·û´®¸ñʽ£ ......
·µ»ØÈçÏÂxml×Ö·û´®£º
<?xml version="1.0" encoding="utf-8" ?>
<DeliverMsg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www ......
×¢£º
1.ÊÖ¶¯É¾³ýieÁÙʱÎļþºó¿ÉÒÔ»ñÈ¡ÐÂÊý¾Ý£»
2.Ë¢ÐÂÒ³Ãæ²»ÄÜ»ñÈ¡ÐÂÊý¾Ý£»
3.²»ÒªËµ¼ÓËæ»úÊýÔÚurlÉÏ£¬ÎÒ²»ÖªµÀ¾ßÌå¼ÓÔÚÄÄÀÎÒÂÒÊÔÁËÒ²»¹ÊDz»ÐУ»
4.Ï£ÍûµÃµ½µÄЧ¹ûÊǵã»÷¡°»ñÈ¡Êý¾Ý¡±ºó¿ÉÒÔÏÔʾxmlÀï ......
<Employee>
<Employee code= "2003 ">
<a> fdsafdsaf </a>
......