flash ¶ÁÈ¡ xmlÖÐÄÚÈÝ
<?xml version="1.0"
encoding="utf-8"?>£¨×¢ÊÍ£º×îºÃʹÓÃutf-8±àÂ룩
<¸ñʽ1>
<¸ñʽ2>
<·ÖÖ§ name="²âÊÔ"/>
</¸ñʽ2>
</¸ñʽ1>
(×¢Ò⣺xmlÊDZê¼ÇÓïÑÔ¡£±ê¼Ç¶¼¿ÉÒÔ×Ô¼º¶¨Òå)
ÄÇflashÊÇÔõô¶ÁÈ¡xmlÄØ£¿£¿
ÏÈÓÃflash¼¸¸öº¯ÊýÀ´µ÷ÓÃxml
new XML()²ÎÊýÓÃÀ´µ÷ÓÃxml
my_xml.load(url)²ÎÊýurl Òª¼ÓÔØµÄ XML ÎĵµËùλÓÚµÄ
URL¡£
my_sound.onLoad = function(success){
// ´Ë´¦ÊÇÄúµÄÓï¾ä
}
²ÎÊýsuccess Èç¹û my_sound Òѳɹ¦¼ÓÔØ£¬ÔòΪ²¼¶ûÖµ true£¬·ñÔòΪ false¡£
¼ÓÔØxmlµÄÓï¾ä¾ÍÕâЩÁ˺ǺÇ~~¿ÉÊÇÔõô¶ÁÈ¡xmlÄÚµÄÊý¾ÝÄØ~~~~~~
Ò»°ãÓõ½£º
my_xml.childNodes²ÎÊýÎÞ¡£·µ»ØÒ»¸öÊý×é¡£
˵Ã÷ÊôÐÔ£¨Ö»¶Á£©£»Ö¸¶¨ XML ¶ÔÏóµÄ×Ó¼¶×é³ÉµÄÊý×é¡£
my_xml.attributes²ÎÊýÎÞ¡£
·µ»ØÒ»¸öÊý×顣˵Ã÷ÊôÐÔ£»Ò»¸ö°üº¬Ö¸¶¨ XML ¶ÔÏóµÄËùÓÐÊôÐԵĹØÁªÊý×é¡£
my_xml.nodeName˵Ã÷ÊôÐÔ£»XML ¶ÔÏóµÄ½ÚµãÃû³Æ¡£
my_xml.firstChild˵Ã÷ÊôÐÔ£¨Ö»¶Á£©£»¼ÆËãÖ¸¶¨µÄ XML
¶ÔÏ󣬲¢ÒýÓø¸¼¶½ÚµãµÄ×Ó¼¶ÁбíÖеĵÚÒ»¸ö×Ó¼¶¡£
ιιÄãÕâÉÏÃæдЩµÄʲô¶«Î÷~~~~~~ÎÒÔõô¿´²»´óÃ÷°×µ½µ×ÔõôÓð¡~~~£¨ÅÔ°×£©¶÷ºÃ
µÄÕâÀïÎÒд¸öÀý×Ó¸øÄã¿´~~~~~~
Àý×Ó£º
ÎÒÉÏÃæ²»ÊÇдÁËÒ»¸öxmlÄØ£¨Ôڼӵ㶫Î÷£©¡£
<?xml version="1.0" encoding="utf-8"?>
<¸ñʽ1 name="²âÊÔ&qu
Ïà¹ØÎÊ´ð£º
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<video>
<device deviceid="\\?\usb#vid_0c45&pid_613b#5&2d0620de& ......
ÎÒÏÖÔÚÓÐÒ»¸öXML¶ÔÏó
var merxml
merxml ±£´æµÄÄÚÈÝ ÊÇ
<root>
<a>a</a>
<b>b</b>
</root>
ÎÒÏÖÔÚµÄÄ¿µÄÊÇÒª°Ñ merxml Õâ¸öXML¶ÔÏó ÍêÕûµÄÊä³öµ½Ò»¸öÎı¾¿ò tx ......