锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产第一页在线,久久综合欧美,欧美在线视频网http://www.aygfsteel.com/jeffy/archive/2009/02/10/137657.html#253991liyaxiliyaxiMon, 09 Feb 2009 22:20:00 GMThttp://www.aygfsteel.com/jeffy/archive/2009/02/10/137657.html#253991var str=new Array();
var xmlDoc=xmlHttp.responseXML;
for(var i=0;i<xmlDoc.length;i++)
{
str[i]=xmlDoc.getElementsByTagName("name")[i].childNodes [0].nodeValue;
}
娉ㄦ剰瑕佸垽鏂璱e text() 鍜岀伀鐙愮殑textContent()鍖哄埆
]]>- re: Ajax浠esponseXML榪斿洖,瀹㈡埛绔?IE)涓嶈兘鍒嗘瀽xml闂http://www.aygfsteel.com/jeffy/archive/2009/02/10/137657.html#253990liyaxiliyaxiMon, 09 Feb 2009 22:07:00 GMThttp://www.aygfsteel.com/jeffy/archive/2009/02/10/137657.html#253990http://jiangx.javaeye.com/blog/153066
1.瀵筙MLHttpRequest璇鋒眰榪斿洖鐨剅esponseXML榪涜瑙f瀽,responseXML鏄釜XMLDOcument瀵硅薄
鍋囪榪斿洖鐨剅esponseXML涓?
<?xml version="1.0" encoding="UTF-8"
standal?>
<response>
<method>checkName</method>
<result>1</result>
</response>
鍒欒幏鍙杕ethod鍜宺esult鍊兼柟娉曚負:
var response = req.responseXML.documentElement;
method = response.getElementsByTagName('method')[0].firstChild.data;
result = response.getElementsByTagName('result')[0].firstChild.data;
2.鍒涘緩涓涓猉MLDocument瀵硅薄
function getXMLDocument() {
var xDoc = null;
if (document.implementation && document.implementation.createDocument) {
xDoc = document.implementation.createDocument("", "", null);
} else {
if ((typeof ActiveXObject) != "undefined") {
var msXmlAx = null;
try {
msXmlAx = new ActiveXObject("Msxml2.DOMDocument");
}
catch (e) {
msXmlAx = new ActiveXObject("Msxml.DOMDocument");
}
xDoc = msXmlAx;
}
}
if (xDoc == null || typeof xDoc.load == "undefined") {
xDoc = null;
}
return xDoc;
}
3.鍒涘緩涓涓狣OM鏍?
<people>
<person first-name="eric" middle-initial="h" last-name="jung">
<address street="321 south st" city="denver" state="co" country="usa" />
</person>
<person first-name="jed" last-name="brown">
<address street="321 north st" city="atlanta" state="ga" country="usa" />
<address street="321 south avenue" city="denver" state="co" country="usa" />
</person>
</people>
紼嬪簭濡備笅:
var doc=getXMLDocument();
var peopleElem = doc.createElement("people");
var personElem1 = doc.createElement("person");
personElem1.setAttribute("first-name", "eric");
personElem1.setAttribute("middle-initial", "h");
personElem1.setAttribute("last-name", "jung");
var addressElem1 = doc.createElement("address");
addressElem1.setAttribute("street", "321 south st");
addressElem1.setAttribute("city", "denver");
addressElem1.setAttribute("state", "co");
addressElem1.setAttribute("country", "usa");
personElem1.appendChild(addressElem1);
var personElem2 = doc.createElement("person");
personElem2.setAttribute("first-name", "jed");
personElem2.setAttribute("last-name", "brown");
var addressElem3 = doc.createElement("address");
addressElem3.setAttribute("street", "321 north st");
addressElem3.setAttribute("city", "atlanta");
addressElem3.setAttribute("state", "ga");
addressElem3.setAttribute("country", "usa");
personElem2.appendChild(addressElem3);
var addressElem5 = doc.createElement("address");
addressElem5.setAttribute("street", "321 south avenue");
addressElem5.setAttribute("city", "denver");
addressElem5.setAttribute("state", "co");
addressElem5.setAttribute("country", "usa");
personElem2.appendChild(addressElem5);
peopleElem.appendChild(personElem1);
peopleElem.appendChild(personElem2);
doc.appendChild(peopleElem);
alert(doc.xml);//xml灞炴у彧瀵笽E綆$敤

]]> - re: Spring涓璦utowire="byName" /"byType"http://www.aygfsteel.com/jeffy/archive/2009/02/04/32983.html#253281NassirNassirWed, 04 Feb 2009 08:55:00 GMThttp://www.aygfsteel.com/jeffy/archive/2009/02/04/32983.html#253281
]]> - re: 鎬庢牱璁捐璋冩煡闂嵎[鏈櫥褰昡http://www.aygfsteel.com/jeffy/archive/2009/01/13/114217.html#251148鐜嬪鉤鐜嬪鉤Tue, 13 Jan 2009 08:53:00 GMThttp://www.aygfsteel.com/jeffy/archive/2009/01/13/114217.html#251148
]]> - 褰╅搩瀹㈡埛鏈夊璋冩煡http://www.aygfsteel.com/jeffy/archive/2008/09/27/114217.html#231414鍒樹簹鏉?/dc:creator>鍒樹簹鏉?/author>Sat, 27 Sep 2008 01:28:00 GMThttp://www.aygfsteel.com/jeffy/archive/2008/09/27/114217.html#231414
]]> - re: Lucene 鏁版嵁搴?鍏ㄦ枃鎼滅儲 鐩稿叧http://www.aygfsteel.com/jeffy/archive/2008/07/25/141798.html#217583ddddddddFri, 25 Jul 2008 14:19:00 GMThttp://www.aygfsteel.com/jeffy/archive/2008/07/25/141798.html#217583
]]> - re: 閿欒鍒楄〃[鏈櫥褰昡http://www.aygfsteel.com/jeffy/archive/2008/03/19/27802.html#187364灝忕背灝忕背Wed, 19 Mar 2008 13:49:00 GMThttp://www.aygfsteel.com/jeffy/archive/2008/03/19/27802.html#187364
浠涔堟剰鎬濆晩 錛燂紵錛燂紵錛燂紵錛燂紵錛燂紵錛燂紵錛燂紵錛燂紵
]]> - re: Subversion瀹夎涓庡鎴風浣跨敤璇存槑-1http://www.aygfsteel.com/jeffy/archive/2008/02/16/129767.html#180156fuckfuckSat, 16 Feb 2008 02:26:00 GMThttp://www.aygfsteel.com/jeffy/archive/2008/02/16/129767.html#180156warehouse
鏄綘鑷繁鐨勯」鐩紝濡傛灉鎴戠‖鐩橀噷D鐩樹笅涓涓」鐩紝闅鵑亾涔熻鐢╨ocalhost鎴栬?92.168.1.10?
涓嶉氱敤鐨勫仛娉曞啓鍑烘潵涓嶆槸璇浜哄悧錛?

]]> - re: 鍒涗笟鍥㈤槦鐩稿叧http://www.aygfsteel.com/jeffy/archive/2007/12/20/167924.html#16895844Thu, 20 Dec 2007 03:03:00 GMThttp://www.aygfsteel.com/jeffy/archive/2007/12/20/167924.html#168958
鍔′漢鍛樹箣闂存惌寤轟竴涓簰閫氬競鍦轟俊鎭紝浜ゆ祦涓氬姟緇忛獙錛屾嫇灞曚笟鍔′漢鑴夛紝鍏變韓瀹㈡埛璧?br>
婧愶紝鏁村悎閿鍞笭閬擄紝鎷涜仒涓氬姟綺捐嫳鐨勫鉤鍙般?br>
涓浗涓氬姟緹?鎷涜仒鍏艱亴緗戠粶瀹d紶鍛?0鍚?br>1銆佽姹傛湁鍏呰凍鐨勪笂緗戞椂闂達紝鑷繁瀹舵湁瀹藉甫銆?銆佺啛鎮夌數鑴戠殑鍩烘湰鎿嶄綔3銆佺啛鎮夊熀鏈?br>
鐨勭綉緇滃簲鐢紝濡俀Q錛屽崥瀹㈢瓑銆傛湁鎰忚呭姞QQ 8879888 璇﹁皥 鎴栬呰嚧鐢碉細023-
65412908 13996323710 
]]> - re: Mondrian demo鐨勫畨瑁呬笌榪愯http://www.aygfsteel.com/jeffy/archive/2007/05/26/27320.html#120149StriveStriveSat, 26 May 2007 03:13:00 GMThttp://www.aygfsteel.com/jeffy/archive/2007/05/26/27320.html#120149
]]>
主站蜘蛛池模板:
通道|
巴林左旗|
武平县|
镇江市|
嘉义市|
华池县|
大悟县|
黄平县|
天水市|
新蔡县|
班戈县|
东方市|
什邡市|
奉节县|
濮阳市|
随州市|
启东市|
新晃|
凤阳县|
交城县|
汽车|
武胜县|
开封县|
无极县|
绵竹市|
绥棱县|
高台县|
辉县市|
车致|
定陶县|
吴忠市|
廉江市|
军事|
富锦市|
望城县|
峨眉山市|
海晏县|
登封市|
乐昌市|
新津县|
曲水县|