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

½â¾öjQueryÔÚIE6ϱéÀúXMLµÄBug£¡

²Î¿¼²©ÎÄ¡¶IEÏÂÀûÓÃjQuery·ÖÎöXML¡·µØÖ·£ºhttp://www.newmediafun.com/2009/07/parsing-xml-with-jquery-in-internet-explorer/
±¾À´ÒÔΪjQuery»áºÜºÃµÄ½â¾öËùÓÐä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌ⣬µ«ÊÇÕóÍöµÄIE6»¹ÊÇ»áÕÒÂé·³£¡
jQueryʹÓÃAJAXʱ£¬ÔÚIE6϶ÁÈ¡»Ø´«µ½XMLÊý¾Ý»áÓÐÎÊÌ⣬¾ßÌå¿´ÏÂÃæµÄÀý×Ó°É¡£
×¼±¸Êý¾ÝÎļþtest.xml
<ArrayOfManagement_Contact>
<Management_Contact>
<user_id>123457</user_id>
<tel_type>2</tel_type>
<tel>879</tel>
<visibility>0</visibility>
<del_flg>0</del_flg>
<id>537</id>
</Management_Contact>
<Management_Contact>
<user_id>123457</user_id>
<tel_type>2</tel_type>
<tel>54645</tel>
<visibility>0</visibility>
<del_flg>0</del_flg>
<id>538</id>
</Management_Contact>
</ArrayOfManagement_Contact>  
Õý³£Çé¿öÏ¿ÉÒÔʹÓà $.get / $.post£¬µ«ÊÇIEÓиö°²È«ÐÔÏÞÖÆµÄÎÊÌ⣬»áʹjQueryÎÞ·¨ÕýÈ·½âÊÍXMLÊý¾Ý£¬ÖÁÓÚʲô°²È«ÐÔ£¬Ã»ÐËȤÉ£¬¾Íµ±bug´¦Àí£¡×÷ÕßÔ­ÎĵĽâÊÍÈçÏ£º
What happens is that the XML gets loaded into IE as a text object, then gets converted into usable XML data. Any other browsers get the XML data directly.
BugÔ­Òò£ºIEÇëÇóXMLÎļþʱ£¬ºó½«Ëü×÷ΪÎı¾¶ÔÏó¼ÓÔØ£¬Ö®ºóÐèÒªÎÒÃÇÊÖ¶¯×ª³ÉXMLÀàÐ͵ÄÊý¾Ý²Å¿ÉÒÔʹÓ㬶øÆäËûä¯ÀÀÆ÷»áÖ±½Ó×°ÔØXMLÀàÐÍÊý¾Ý¡£
ËùÒÔÔÚÏÂÃæµÄ´úÂëÖУ¬solution1ÊÇÎÞ·¨ÕýÈ·¹¤×÷µÄ£¬solution2ÌṩÁ˱äͨµÄת»»·½°¸£¬ÎÊÌâ½â¾ö£¡
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>123123123</title>
<mce:script type="text/javascript" src="jquery-1.3.2.min.js" mce_src="jquery-1.3.2.min.js"></mce:script>
<mce:script type="text/javascript"><!--
function test() {
/*
// solution 1
$.post('test.xml', null, function (data) {
var mydata = data;
alert('my');
alert($(mydata).find("user_id").eq(1).t


Ïà¹ØÎĵµ£º

ÓÃjdom¶ÔxmlÎļþµÄ¶ÁÈ¡

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom.xpath.XPath;
public class XMLReader {
 priv ......

C#¶ÁÈ¡º¬ÓÐxmlnsµÄXMLÎļþ

1 ÀàËÆxmlns=""µÄÎļþ
ʾÀýXMLÎļþ:
 <?xml version="1.0" encoding="UTF-8"?>
<WebSrvMessage xmlns="http://www.lenoval.com/">
  <version>1.0</version>
  <DataContent>
    <DateTag>2010-5-17</DateTag>
  </DataCont ......

Asp.Net XML²Ù×÷»ùÀà

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Xml;
using System.Text; ......

Loading XML data using ActionScript 3.0

Loading XML data using ActionScript 3.0
By Blue_Chi | Flash CS3 | ActionScript 3.0 | Beginner
Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. This tutorial will teach you the basics on how to load and process X ......

¶àÖÖXML½âÎö·½·¨

±¾ÎĽéÉÜÁ˸÷ÖÖ½âÎö·½·¨£¬×ÅÖØ·ÖÎöÁ˸÷×ÔµÄÓÅȱµã:
½âÎöµÄÖØÒªÐÔ
¡¡¡¡½âÎöÎªÊ²Ã´ÖØÒª?ÒòΪËùÓÐ XML ´¦Àí¶¼´Ó½âÎö¿ªÊ¼¡£ÎÞÂÛʹÓø߲ã±à³ÌÓïÑÔ(Èç XSLT)»¹ÊǵͲã Java ±à³Ì£¬µÚÒ»²½¶¼ÊÇÒª¶ÁÈë XML Îļþ£¬½âÂë½á¹¹ºÍ¼ìË÷ÐÅÏ¢µÈµÈ£¬Õâ¾ÍÊǽâÎö¡£
¡¡¡¡½âÎöÎĵµÊ±ÃæÁٵĵÚÒ»¸öÑ¡ÔñÊDzÉÓÃÏֳɵĽâÎö¿â(»ù±¾ÉÏÿÖÖ±à³ÌÓïÑÔ¶¼Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ