ÓÃDOM´´½¨XMLÎĵµ - Web ¿ª·¢ / JavaScript
ÀûÓÃDOM´´½¨ÈçϽṹµÄXMLÎĵµ£¬ÎļþÃûΪstu_data.xml¡£Æä´óÖÂÎĵµ½á¹¹ÈçÏ£º <?xml version="1.0" encoding="gb2312"?> <ѧÉú×÷ÒµÁбí> <ѧÉú id="001"> <ÐÕÃû>ÕÅÎÞ¼É</ÐÕÃû> <ѧºÅ>2007213101</ѧºÅ> <°à¼¶>ÐÅÏ¢¹ÜÀí°à</°à¼¶> <¿Î³ÌÃû³Æ>XMLÓïÑÔ³ÌÐòÉè¼Æ</¿Î³ÌÃû³Æ> <Åú´Î>6</Åú´Î> <×÷ÒµÄÚÈÝ><![CDATA[data]]></×÷ÒµÄÚÈÝ> </ѧÉú> </ѧÉú×÷ÒµÁбí> ¹òÇó¸÷λ¸ßÊÖ°ïæ
DOMûÓÐȨÏÞдÈëÎļþ£¬ÐèҪʹÓ÷þÎñÆ÷ÓïÑÔ ¿´Ò»ÏÂapi¾Í¸ã¶¨ÁË js Ö»Òª¶ÁµÄȨÏÞ£¬¶ÔÓÚÐÞ¸ÄÎļþÊDz»¿ÉÒÔµÄÒýÓà DOMûÓÐȨÏÞдÈëÎļþ£¬ÐèҪʹÓ÷þÎñÆ÷ÓïÑÔ ²»ÔõôÄÜÀí½â,Äܲ»ÄܽâÊÍÇå³þÒ»µã,ÎÒÊÇjspÉúÊÖ,Ò²ÊÇxml²ËÄñ http://www.javanb.com/javascript/1/5682.html ÀíÂÛÉÏÊÇ¿ÉÐУ¬µ«ÊÇʵ¼ÊÓÃJSÈ¥²Ù×÷µÄʱºò£¬»á³öÏÖÒ»¸ö´íÎó£ºÃ»ÓÐȨÏÞ£¡ÎÒÊÔ¹ýºÜ¶à´ÎÁË£¡ÔÒòºÜ¼òµ¥£¬¿Í»§¶Ë²»ÄÜÓµÓÐÕâÖÖȨÀû£¬Èç¹ûÓУ¬ÄÇô·þÎñÆ÷¶ËµÄXML×öµÄÁôÑÔ±¾£¬ÄDz»ÊÇ˶¼¿ÉÒÔÓÿͻ§¶ËÈ¥¸ÄдÁËÂ𣿠×ܽ᣺д£ºÒ»¶¨ÒªÓ÷þÎñÆ÷¶Ë½Å±¾ÓïÑÔASP£¬JSP£¬PHPµÈµÈ²ÅÄÜдÕâ¸öXML¡£ ¶Á£ºÄǾͶàÁË£¬Ö»ÒªÊǽű¾¾Í¿ÉÒÔÁË£¡ÒýÓà ÀíÂÛÉÏÊÇ¿ÉÐУ¬µ«ÊÇʵ¼ÊÓÃJSÈ¥²Ù×÷µÄʱºò£¬»á³öÏÖÒ»¸ö´íÎó£ºÃ»ÓÐȨÏÞ£¡ÎÒÊÔ¹ýºÜ¶à´ÎÁË£¡ÔÒòºÜ¼òµ¥£¬¿Í»§¶Ë²»ÄÜÓµÓÐÕâÖÖȨÀû£¬Èç¹ûÓУ¬ÄÇô·
Ïà¹ØÎÊ´ð£º
<?xml version="1.0" encoding="utf-8" ?> - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
Private Sub Command1_Click() Dim MyString() As String Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£ ReDim MyString(LOF(1) - 1) Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ÏÂÃæÊÇXML³õʼÎļþÄÚÈÝ XML code: <upd:Update xmlns:lar="http://schemas.microsoft.com/msus/2002/12/LogicalApplicabilityRules" xmlns:cmd="http://schemas.microsoft.com/msus/2002/12/Up ......
xmlÎļþ¸ñʽÈçÏ XML code: <?xml version="1.0" encoding="GB2312" ?> <allproducts version="1.0"> <products> <product name="prodId&quo ......
zend studio for Eclipse½¨Á¢µÄÒ»¸öÏîÄ¿£¬½á¹¹È磺 Add.php: PHP code: <?php class Add { /** * Enter discription here... * @param integer $x * @param integer $y * @ ......