XmlÖеĽڵã»òÊôÐÔֵȥ¿Õ°×
<Records>
<Record>
<id>1 </id>
<name>ÀîËÄ </name>
</Record>
<Record>
<id>2 </id>
<name>ÕÅÈý </name>
</Record>
<Record>
<id>3 </id>
<name>ÍõÎå </name>
</Record>
<Records>
ÎÒҪȡ³öÕÅÈýµÄ»°£¬¾ÍÐèÒªÖªµÀÕÅÈýµÄidµÄÖµ£¬½çÃæÉÏÈ¡µÃµÄidÊÇ2 £¬µ«ÊÇXmlÎļþÖÐidÊÇ2»¹Óиö¿Õ¸ñ£¬ÕâʱºòÎÒÃǾÍҪȥ³ýXmlÎļþÖеĿոñÁË¡£
XmlNode node = document.SelectSingleNode("//Records/Record[normalize-space(@id)='2']);ÕâÑù¾Í¿ÉÒÔÁË£¬Ò²ÐíÓÐÈËÎÊ£¬ÎªÊ²Ã´²»¼ÓÉÏ¿Õ¸ñ¾ÍÐÐÁË£¬Õâ¸öÎÒ¿ÉÒÔ¸æËßÄ㣬Èç¹ûXml½ÚµãÖеÄÖµÓжà¸ö¿Õ¸ñ£¬ÕâÑùÈçºÎ´¦Àíѽ£¿
W3cShoolÉÏ»¹ÓÐÐí¶àº¯Êý£¬ÓÐÐËȤ¿ÉÒÔÈ¥¿´¿´¡£
Ïà¹ØÎĵµ£º
´úÂëÈçÏÂ:
DECLARE
@TempTable table(UserID int , UserName nvarchar(50));
insert into
@TempTable (UserID,UserName) values (1,'a')
insert into @TempTable
(UserID,UserName) values (2,'b')
select UserID,UserName
from @TempTable FOR XML PATH
ÔËÐÐÕâ¶Î½Å±¾£¬½«Éú³ÉÈçϽá¹û£º
¸´ÖÆ´úÂë
......
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 ......
ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>¹þÀï²¨Ì ......
±¾ÎĽéÉÜÁ˸÷ÖÖ½âÎö·½·¨£¬×ÅÖØ·ÖÎöÁ˸÷×ÔµÄÓÅȱµã:
½âÎöµÄÖØÒªÐÔ
¡¡¡¡½âÎöΪʲôÖØÒª?ÒòΪËùÓÐ XML ´¦Àí¶¼´Ó½âÎö¿ªÊ¼¡£ÎÞÂÛʹÓø߲ã±à³ÌÓïÑÔ(Èç XSLT)»¹ÊǵͲã Java ±à³Ì£¬µÚÒ»²½¶¼ÊÇÒª¶ÁÈë XML Îļþ£¬½âÂë½á¹¹ºÍ¼ìË÷ÐÅÏ¢µÈµÈ£¬Õâ¾ÍÊǽâÎö¡£
¡¡¡¡½âÎöÎĵµÊ±ÃæÁٵĵÚÒ»¸öÑ¡ÔñÊDzÉÓÃÏֳɵĽâÎö¿â(»ù±¾ÉÏÿÖÖ±à³ÌÓïÑÔ¶¼Ó ......
²Î¿¼²©ÎÄ¡¶IEÏÂÀûÓÃjQuery·ÖÎöXML¡·µØÖ·£ºhttp://www.newmediafun.com/2009/07/parsing-xml-with-jquery-in-internet-explorer/
±¾À´ÒÔΪjQuery»áºÜºÃµÄ½â¾öËùÓÐä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌ⣬µ«ÊÇÕóÍöµÄIE6»¹ÊÇ»áÕÒÂé·³£¡
jQueryʹÓÃAJAXʱ£¬ÔÚIE6϶ÁÈ¡»Ø´«µ½XMLÊý¾Ý»áÓÐÎÊÌ⣬¾ßÌå¿´ÏÂÃæµÄÀý×Ó°É¡£
×¼±¸Êý¾ÝÎļþtest.xml
<Ar ......