Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ÎÊÌâ

vbÖÐÔõôͨ¹ýxmlÀ´½âÎöÊý¾Ý¿âÖеÄ×Ö¶ÎÖµ¡£
û°ì·¨ÓÃ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 ......

ajax²»Äܶ¯Ì¬ÏÔʾxmlÀïµÄÊý¾Ý(ÐÞ¸Ä)

×¢£º
1.ÊÖ¶¯É¾³ýieÁÙʱÎļþºó¿ÉÒÔ»ñÈ¡ÐÂÊý¾Ý£»
2.Ë¢ÐÂÒ³Ãæ²»ÄÜ»ñÈ¡ÐÂÊý¾Ý£»
3.²»ÒªËµ¼ÓËæ»úÊýÔÚurlÉÏ£¬ÎÒ²»ÖªµÀ¾ßÌå¼ÓÔÚÄÄÀÎÒÂÒÊÔÁËÒ²»¹ÊDz»ÐУ»
4.Ï£ÍûµÃµ½µÄЧ¹ûÊǵã»÷¡°»ñÈ¡Êý¾Ý¡±ºó¿ÉÒÔÏÔʾxmlÀï ......

ÏÂÃæµÄxmlÎļþÔõô¶Á£¿

<Employee>
      <Employee   code= "2003 ">
                <a> fdsafdsaf </a>
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ