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

xml

¡¡¡¡XML£¨Extensible Markup Language£©¼´¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¬ËüÓëHTMLÒ»Ñù£¬¶¼ÊÇSGML(Standard Generalized Markup Language,±ê׼ͨÓñê¼ÇÓïÑÔ)¡£XmlÊÇInternet»·¾³ÖÐ¿çÆ½Ì¨µÄ£¬ÒÀÀµÓÚÄÚÈݵļ¼Êõ£¬Êǵ±Ç°´¦Àí½á¹¹»¯ÎĵµÐÅÏ¢µÄÓÐÁ¦¹¤¾ß¡£À©Õ¹±ê¼ÇÓïÑÔXMLÊÇÒ»ÖÖ¼òµ¥µÄÊý¾Ý´æ´¢ÓïÑÔ£¬Ê¹ÓÃһϵÁмòµ¥µÄ±ê¼ÇÃèÊöÊý¾Ý£¬¶øÕâЩ±ê¼Ç¿ÉÒÔÓ÷½±ãµÄ·½Ê½½¨Á¢£¬ËäÈ»XMLÕ¼ÓõĿռä±È¶þ½øÖÆÊý¾ÝÒªÕ¼Óøü¶àµÄ¿Õ¼ä£¬µ«XML¼«Æä¼òµ¥Ò×ÓÚÕÆÎÕºÍʹÓá£
¡¡¡¡XMLʵÀý
¡¡¡¡<?xml version="1.0" encoding="ISO-8859-1"?>
¡¡¡¡<bookstore>
¡¡¡¡<book catalog="Programming">
¡¡¡¡<title lang="en">C++ Programming Language</title>
¡¡¡¡<author>Bjarne Stroustrup</author>
¡¡¡¡<year>1998</year>
¡¡¡¡<price>98.0</price>
¡¡¡¡</book>
¡¡¡¡<book catalog="Networking">
¡¡¡¡<title lang="en">TCP/IP Illustrated</title>
¡¡¡¡<author>Richard Stevens</author>
¡¡¡¡<year>1996</year>
¡¡¡¡<price>56.0</price>
¡¡¡¡</book>
¡¡¡¡</bookstore>
¡¡¡¡XMLÓëAccess,OracleºÍSQL ServerµÈÊý¾Ý¿â²»Í¬£¬Êý¾Ý¿âÌṩÁ˸üÇ¿ÓÐÁ¦µÄÊý¾Ý´æ´¢ºÍ·ÖÎöÄÜÁ¦£¬ÀýÈ磺Êý¾ÝË÷Òý¡¢ÅÅÐò¡¢²éÕÒ¡¢Ïà¹ØÒ»ÖÂÐԵȣ¬XML½ö½öÊÇչʾÊý¾Ý¡£ÊÂʵÉÏXMLÓëÆäËûÊý¾Ý±íÏÖÐÎʽ×î´óµÄ²»Í¬ÊÇ£ºËû¼«Æä¼òµ¥¡£ÕâÊÇÒ»¸ö¿´ÉÏÈ¥ÓеãËöϸµÄÓŵ㣬µ«ÕýÊÇÕâµãʹXMLÓëÖÚ²»Í¬¡£
¡¡¡¡XMLÓëHTMLµÄÉè¼ÆÇø±ðÊÇ£ºXMLÊÇÓÃÀ´´æ´¢Êý¾ÝµÄ£¬ÖØÔÚÊý¾Ý±¾Éí¡£¶øHTMLÊÇÓÃÀ´¶¨ÒåÊý¾ÝµÄ£¬ÖØÔÚÊý¾ÝµÄÏÔʾģʽ¡£
¡¡¡¡XMLµÄ¼òµ¥Ê¹ÆäÒ×ÓÚÔÚÈκÎÓ¦ÓóÌÐòÖжÁдÊý¾Ý£¬ÕâʹXMLºÜ¿ì³ÉΪÊý¾Ý½»»»µÄΨһ¹«¹²ÓïÑÔ£¬ËäÈ»²»Í¬µÄÓ¦ÓÃÈí¼þÒ²Ö§³ÖÆäËüµÄÊý¾Ý½»»»¸ñʽ£¬µ«²»¾ÃÖ®ºóËûÃǶ¼½«Ö§³ÖXML£¬ÄǾÍÒâζ×ųÌÐò¿ÉÒÔ¸üÈÝÒ×µÄÓëWindows¡¢Mac OS, LinuxÒÔ¼°ÆäËûƽ̨ϲúÉúµÄÐÅÏ¢½áºÏ£¬È»ºó¿ÉÒÔºÜÈÝÒ×¼ÓÔØXMLÊý¾Ýµ½³ÌÐòÖв¢·ÖÎöËû£¬²¢ÒÔXML¸ñʽÊä³ö½á¹û¡£
¡¡¡¡ÎªÁËʹµÃSGMLÏÔµÃÓû§ÓѺã¬XMLÖØÐ¶¨ÒåÁËSGMLµÄһЩÄÚ²¿ÖµºÍ²ÎÊý£¬È¥µôÁË´óÁ¿µÄºÜÉÙÓõ½µÄ¹¦ÄÜ£¬ÕâЩ·±ÔӵŦÄÜʹµÃSGMLÔÚÉè¼ÆÍøÕ¾Ê±ÏԵø´ÔÓ»¯¡£XML±£ÁôÁËSGMLµÄ½á¹¹»¯¹¦ÄÜ£¬ÕâÑù¾ÍʹµÃÍøÕ¾Éè¼ÆÕß¿ÉÒÔ¶¨Òå×Ô¼ºµÄÎĵµÀàÐÍ£¬XMLÍ¬Ê±Ò²ÍÆ³öÒ»ÖÖÐÂÐÍÎĵµÀàÐÍ£¬Ê¹µÃ¿ª·¢ÕßÒ²¿ÉÒÔ²»±Ø¶¨ÒåÎĵµÀàÐÍ¡£
¡¡¡¡ÒòΪXMLÊÇW3CÖÆ¶¨µÄ£¬XMLµÄ±ê×¼»¯¹¤×÷ÓÉW3


Ïà¹ØÎĵµ£º

ÔÚXMLÖж¨Òå²Ëµ¥

ºÍAndroid UI layoutÒ»Ñù£¬ÎÒÃÇÒ²¿ÉÒÔÔÚXMLÖж¨ÒåÓ¦ÓóÌÐòµÄ²Ëµ¥¡£Í¨¹ýÔڲ˵¥µÄonCreateOptionsMenu·½·¨ÖÐÅòÕͲ˵¥layout¡£ÕâÑù×ö»áʹÎÒÃǵijÌÐò´úÂë¼òµ¥¶àÁË£¬¶øÇÒ¾¡¿ÉÄܵĽ«¸ü¶àµÄ½çÃæÉè¼Æ²¿·Ö·Åµ½XML£¬±ãÓÚä¯ÀÀ¡£
 
1. ÔÚ¹¤³ÌµÄ/res/Îļþ¼ÐÏ´´½¨menuÎļþ¼Ð£¬ÓÃÀ´±£´æÄãΪӦÓóÌÐò¶¨ÒåµÄ²Ëµ¥XMLÎļþ¡£
Ôڲ˵¥XML ......

XML½âÎö¼¼Êõ

 XMLѧϰÍêÁË£¬ÀÏʦ˵ÔÚÃæÊÔµÄʱºòÓпÉÄÜÒªÎʵ½ÕâЩ£¬ËùÒÔÓÖÕÒÁËЩ×ÊÁÏ£¬ÔÚMLDNµÄÕâ¶ÎÈÕ×ÓÀÀÏʦÃǶ¼°Ñ¸÷¸öÃæÊÔÖÐÓпÉÄÜÒªÎʵ½µÄÎÊÌâ¶¼°ïÎÒÃÇÒ»Ò»×Ü½á£¬ÕæµÄºÜ¸ÐлMLDNµÄÈ«²¿ÀÏʦ,ÏîÄ¿ÀÏʦ°ïÎÒÃÇÈÏÕæµÄ½²½âÏîÄ¿£¬¸¨µ¼ÏîÄ¿£¬½ÌѧÀÏʦ°ïÎÒÃÇÈÏÕæ×ܽá¸÷¸ö¼¼Êõ£¬¸Ðл£¬ÕæµÄÊǸÐл£¬ºÇºÇ£¬ÎÒ»áŬÁ¦¸ãºÃµÄ
JavaÖÐËÄÖÖXML ......

javascript¿çä¯ÀÀÆ÷´´½¨XML¶ÔÏó


var
 
xmlDoc
 
=
 
null
;
function
 
parseXML
(
xmlUrl
)
{
¡¡¡¡try
 
{
¡¡¡¡¡¡¡¡//IE
¡¡¡¡¡¡¡¡xmlDoc
 
=
 
new
 
ActiveXObject
(
"Microsoft.XMLDOM"
);
¡¡¡¡¡¡¡¡xmlDoc
.
async
 
=
 
false
;
¡¡¡¡¡¡¡¡xmlDoc ......

ʲôÊÇxml processing instruction(PI)£¿

from:
http://zhidao.baidu.com/question/67891842.html?si=1
ÏÂÃæµÄÒ»ÐоÍÊÇÔÚµÚ¶þ±¾ÊéµÄ¶¨Òå֮ǰµÄ£º
<?page render multiple authors ?>
ËäÈ»Ëü¿´ÉÏÈ¥ºÜÏñXMLÐòÑÔ£¬µ«Êµ¼ÊÉÏÊÇÒ»ÖÖ³ÆÎª´¦ÀíÖ¸Áprocessing instruction£©µÄ²»Í¬ÀàÐ͵ÄÓï·¨¡£´¦ÀíÖ¸ÁÒÔϼò³ÆPI£©µÄÄ¿µÄÊÇΪÁ˸ø´¦ÀíÒ³ÃæµÄ³ÌÐò£¨ÀýÈçXML½âÎöÆ ......

ÔõôÑùÔÚÍøÒ³É϶ÁȡԶ³ÌxmlµÄÊý¾Ý

 ±¾ÎÄת×Ô£ºhttp://www.10086web.com/html/wangluobiancheng/Xmlbiancheng/2009/0612/90.html
Ò»¸ö¿Í»§Ìṩһ¸ö¹É¼ÛµÄÐÅÏ¢£¬ÒªÇó·ÅÔÚÒ³ÃæÉÏ£¬ÏÔʾһЩÊý¾Ý£¬ÐèÒª´ÓÔ¶³Ì»ñÈ¡xml£¬È»ºó½âÎöдÔÚÍøÒ³ÉÏ£¬¿ªÊ¼²»»á¾õµÃºÜÄÑ£¬ÆäʵÂù¼òµ¥µÄ£¬ÏÈÓÃjavascriptдÁËÒ»¸ö£º
<mce:script language=javascript><!--

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