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

XML Óï·¨¹æÔò


ת×Ô£ºhttp://www.w3school.com.cn/xml/xml_syntax.asp
XML µÄÓï·¨¹æÔòºÜ¼òµ¥£¬ÇÒºÜÓÐÂß¼­¡£ÕâЩ¹æÔòºÜÈÝÒ×ѧϰ£¬Ò²ºÜÈÝÒ×ʹÓá£
ËùÓÐ XML ÔªËØ¶¼ÐëÓйرձêÇ©
ÔÚ HTML£¬¾­³£»á¿´µ½Ã»ÓйرձêÇ©µÄÔªËØ£º
<p>This is a paragraph
<p>This is another paragraph
ÔÚ XML ÖУ¬Ê¡ÂԹرձêÇ©ÊÇ·Ç·¨µÄ¡£ËùÓÐÔªËØ¶¼±ØÐëÓйرձêÇ©£º
<p>This is a paragraph</p>
<p>This is another paragraph</p>
×¢ÊÍ£ºÄúÒ²ÐíÒѾ­×¢Òâµ½ XML ÉùÃ÷ûÓйرձêÇ©¡£Õâ²»ÊÇ´íÎó¡£ÉùÃ÷²»ÊôÓÚXML±¾ÉíµÄ×é³É²¿·Ö¡£Ëü²»ÊÇ XML ÔªËØ£¬Ò²²»ÐèÒª¹Ø±Õ±êÇ©¡£
XML ±êÇ©¶Ô´óСдÃô¸Ð
XML ÔªËØÊ¹Óà XML ±êÇ©½øÐж¨Òå¡£
XML ±êÇ©¶Ô´óСдÃô¸Ð¡£ÔÚ XML ÖУ¬±êÇ© <Letter> Óë±êÇ© <letter> ÊDz»Í¬µÄ¡£
±ØÐëʹÓÃÏàͬµÄ´óСдÀ´±àд´ò¿ª±êÇ©ºÍ¹Ø±Õ±êÇ©£º
<Message>ÕâÊÇ´íÎóµÄ¡£</message>
<message>ÕâÊÇÕýÈ·µÄ¡£</message>
×¢ÊÍ£º´ò¿ª±êÇ©ºÍ¹Ø±Õ±êǩͨ³£±»³ÆÎª¿ªÊ¼±êÇ©ºÍ½áÊø±êÇ©¡£²»ÂÛÄúϲ»¶ÄÄÖÖÊõÓËüÃǵĸÅÄî¶¼ÊÇÏàͬµÄ¡£
XML ±ØÐëÕýÈ·µØÇ¶Ì×
ÔÚ HTML ÖУ¬³£»á¿´µ½Ã»ÓÐÕýȷǶÌ×µÄÔªËØ£º
<b><i>This text is bold and italic</b></i>
ÔÚ XML ÖУ¬ËùÓÐÔªËØ¶¼±ØÐë±Ë´ËÕýÈ·µØÇ¶Ì×£º
<b><i>This text is bold and italic</i></b>
ÔÚÉÏÀýÖУ¬ÕýȷǶÌ×µÄÒâ˼ÊÇ£ºÓÉÓÚ <i> ÔªËØÊÇÔÚ <b> ÔªËØÄÚ´ò¿ªµÄ£¬ÄÇôËü±ØÐëÔÚ <b> ÔªËØÄڹرա£
XML Îĵµ±ØÐëÓиùÔªËØ
XML Îĵµ±ØÐëÓÐÒ»¸öÔªËØÊÇËùÓÐÆäËûÔªËØµÄ¸¸ÔªËØ¡£¸ÃÔªËØ³ÆÎª¸ùÔªËØ¡£
<root>
<child>
<subchild>.....</subchild>
</child>
</root>
XML µÄÊôÐÔÖµÐë¼ÓÒýºÅ
Óë HTML ÀàËÆ£¬XML Ò²¿ÉÓµÓÐÊôÐÔ£¨Ãû³Æ/ÖµµÄ¶Ô£©¡£
ÔÚ XML ÖУ¬XML µÄÊôÐÔÖµÐë¼ÓÒýºÅ¡£ÇëÑо¿ÏÂÃæµÄÁ½¸ö XML Îĵµ¡£µÚÒ»¸öÊÇ´íÎóµÄ£¬µÚ¶þ¸öÊÇÕýÈ·µÄ£º
<note date=08/08/2008>
<to>George</to>
<from>John</from>
</note>
<note date="08/08/2008">
<to>George</to>
<from>John</from>
</note>
ÔÚµÚÒ»¸öÎĵµÖеĴíÎóÊÇ£¬note ÔªËØÖÐµÄ date ÊôÐÔûÓмÓÒýºÅ¡£
ʵÌåÒýÓÃ
ÔÚ XML ÖУ¬Ò»Ð©×Ö·ûÓµÓÐÌØÊâµÄÒâÒå¡£
Èç¹ûÄã°Ñ×Ö·û "<" ·ÅÔÚ XML ÔªËØÖУ¬»á·¢Éú´íÎó£¬Õâ


Ïà¹ØÎĵµ£º

zzOPENCV XMLº¯ÊýÍêÃÀÖ§³ÖÖÐÎÄ·½·¨

           
XML¼´extensibe markup languageµÄËõд£¬Ò²¾ÍÊÇ¿ÉÀ©Õ¹±êʶÓïÑÔ¡£ÓÉÓÚÆä¿ª·ÅÐÔ£¬Ô½À´Ô½¶àµÄÈí¼þ²ÉÓÃËü×÷ΪÃèÊöÓïÑÔ£»ÓÉÓÚÆäÆ½Ì¨ÎÞ¹ØÐÔ£¬Ô½À´Ô½¶àµÄϵͳ²ÉÓÃËü×÷ΪÊý¾Ý´«µÝÖн顣¼ÆËã»úÐÐÒµÒѾ­°ÑXMLΪÊý¾Ý½»»»µÄ±ê×¼£¬²¢ÌṩÁËÏ൱ÊýÁ¿µÄÖ§³Ö¹¤¾ß¡£µ« ......

ÀûÓÃVC++ʵÏÖ¶ÔXML½áµãµÄ¸üкÍ×·¼Ó

ʵÏÖ¹¦ÄÜ£º¸ù¾ÝÅäÖÃÎļþ£¨XXXX.ini£©ÖеÄÄÚÈݶÔXMLÖÐ½Úµã½øÐвÙ×÷£¬Èç¹ûXMLÖдæÔÚÓëÅäÖÃÎļþÖÐÏàͬµÄ½Úµã£¬Ôò¸ù¾ÝÅäÖÃÎļþ½«XMLÎļþÖÐÏàÓ¦½ÚµãµÄÖµ½øÐиüУ»Èç¹ûXMLÎļþÖв»´æÔÚÅäÖÃÎļþÖгöÏֵĽڵ㣬ÔòÔÚXMLÖн«Ð½ڵ㼰ֵ½øÐвåÈë²Ù×÷¡£
¡ôXMLÎĵµ½á¹¹ÈçÏÂ
//------------------------------------------------------ ......

ʹÓÃXMLHttpRequest´¦ÀíxmlÊý¾Ý£¨¶þ£©


Ê×ÏÈдһ¸öhtmlÒ³Ãæuserxmlajax.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Óû§Ð£ÑéajaxʵÀý</title>
  &nbs ......

ʹÓÃjquery´¦ÀíxmlÊý¾Ý£¨Èý£©

Ê×ÏÈдһ¸öhtml userxmljquery.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Óû§Ð£ÑéajaxʵÀý</title>
   & ......

Android£¨Èý£©Êý¾Ý´æ´¢Ö®XML½âÎö¼¼Êõ

½ñÈÕ¼ÌÐøÑ§Ï°AndroidÖÐʹÓÃPullµÄXML½âÎö¼¼ÊõʵÏÖ¶ÔXMLÎļþµÄ½âÎöºÍ´´½¨¡£ÓÉÓÚÃ÷ÌìÐÝÏ¢£¬Ê±¼ä±È½Ï³äÔ££¬ËùÒÔÎÒÒ²½«×òÌìδ×ܽáµÄSAX½âÎö¼¼ÊõÔÚ´Ë×ö¸ö×ܽᡣ
Ò»¡¢SAX½âÎö¼¼Êõ
SaxʹÓõÄÊÇʼþÇý¶¯µÄÁ÷ʽ½âÎö¼¼Êõ¡£Ê¼þÇý¶¯µÄÁ÷ʽ½âÎö·½Ê½ÊÇ£¬´ÓÎļþµÄ¿ªÊ¼Ë³Ðò½âÎöµ½ÎĵµµÄ½áÊø£¬²»¿ÉÔÝÍ£»òµ¹ÍË¡£µ±½âÎöµ½ÎĵµµÄ¿ªÊ¼»ò½áÊø¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ