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

Çó½Ì£ºAJAX¶ÁÈ¡xml£¬¶ÔÏó×ÜÊÇΪ¿Õ - Web ¿ª·¢ / Ajax

·þÎñÆ÷¶Ë´úÂ룺

<?php
$row = mysql_fetch_array($result, MYSQL_ASSOC);

header("Content-Type: text/xml");
?>
<?xml version="1.0" encoding="gb2312">

<paikeresult>
<classno-value><? echo trim($row['classno']); ?></classno-value>
<cid-value><? echo trim($row['cid']); ?></cid-value>
</paikeresult>

»Øµ÷º¯ÊýÖеIJ¿·Ö´úÂ룺

var xmlDoc = request.responseXML;
 
var xmlClassno = xmlDoc.getElementsByTagName("classno-value")[0];
var classno = xmlClassno.firstChild.nodeValue;


ÎÊÌ⣺xmlClassno(ºìÉ«²¿·Ö)Õâ¸ö¶ÔÏó×ÜÊÇ¿ÕÖµnull£¬Çó¾È£¬Ê®·Ö¸Ðл

¶¼ÊÔÊÔ£¬¿´Äĸö²»Îª¿ÕÁ˾ÍÓÃÄĸö£º
var xmlClassno = xmlDoc["classno-value"][0];
var xmlClassno = xmlDoc.document.getElementsByTagName("classno-value")[0];

ûÓ㬶¼Ã»ÓÃ


ÒýÓÃ

var xmlDoc = request.responseText
alert(xmlDoc )

ÏÈ¿´¿´·µ»ØÁËЩʲôÄÚÈÝ£¬ÓÐûÓÐÄãÒªµÄ±êÇ©


ллÄãÕâ¸öµ÷ÊԵķ½·¨£¬ÎÒÒ²ÖªµÀÕâÑùµ÷ÊÔ£¬¿É¸Õ²ÅÓеãÂÒûÏëµ½¡£
ÓÃÕâÖÖ·½·¨£¬ÂýÂýÎҾ͵÷¹ýÀ´ÁË¡£

ÎÊÌâ½â¾ö£¡Ê®·Ö¸Ðл


Ïà¹ØÎÊ´ð£º

Çë½ÌajaxʵÏÖµ¯³ö´°ÌåµÄÓ÷¨ - Web ¿ª·¢ / Ajax

°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
  {
  ScriptManager.R ......

ÀûÓÃC#±àдtxtת»¯µ½xmlµÄ³ÌÐò

txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔ­Êý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......

Êý¾ÝÒÔxml¸ñʽ·µ»Ø - MS-SQL Server / Ó¦ÓÃʵÀý

´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

¸ß·Âgoogle suggest ajaxʾÀý - Web ¿ª·¢ / Ajax

ÕÒÁËÒ»¸ö,µ«ËÑË÷ºó²»Ìáʾ,ºÃÏñÎÊÌâ,²é²»³öÀ´Ô­Òò,Ë­°ï×Å¿´Ò»ÏÂ
http://www.chinaz.com/Program/Asp/020Q062632010.html


End_rbody_64769658//-->
¸Ã»Ø¸´ÓÚ2010-04-19 08:15:36±»°æÖ÷ɾ³ý


¶ÔÎÒÓÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ