Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : xml

HTMLµ÷ÓÃXMLÊý¾ÝʵÀý

ÎÄÕÂת×Ô¡¾PHP̽·Õß¡¿
XML Ó¦ÓÃÓÚ web ¿ª·¢µÄÐí¶à·½Ã棬³£ÓÃÓÚ¼ò»¯Êý¾ÝµÄ´æ´¢ºÍ¹²Ïí¡£
Èç¹ûÐèÒªÔÚ HTML ÎĵµÖÐÏÔʾ¶¯Ì¬Êý¾Ý£¬ÄÇôÿµ±Êý¾Ý¸Ä±äʱ½«»¨·Ñ´óÁ¿µÄʱ¼äÀ´±à¼­ HTML£¬
XML ¿ÉÒÔ°ÑÊý¾Ý´Ó HTML ÖзÖÀ뿪À´¡£
ͨ¹ý XML£¬Êý¾ÝÄܹ»´æ´¢ÔÚ¶ÀÁ¢µÄ XML ÎļþÖС£ÕâÑùÄã¾Í¿ÉÒÔרעÓÚʹÓà HTML ½øÐв¼¾ÖºÍÏÔʾ£¬²¢È·±£Ð޸ĵײãÊý¾Ý²»ÔÙÐèÒª¶Ô HTML ½øÐÐÈκεĸı䡣
ͨ¹ýʹÓü¸ÐÐ JavaScript£¬¾Í¿ÉÒÔ¶ÁÈ¡Ò»¸öÍⲿ XML Îļþ£¨XML½âÎö£©£¬È»ºó¸üРHTML ÖеÄÊý¾ÝÄÚÈÝ¡£
´ó¶àÊýä¯ÀÀÆ÷¶¼ÓжÁÈ¡ºÍ²Ù×÷ XML µÄÄÚ½¨ XML ½âÎöÆ÷¡£
½âÎöÆ÷°Ñ XML ת»»Îª JavaScript ¿É·ÃÎʵĶÔÏó¡£
ÔÚ HTML ÖÐÒÔ±í¸ñÐÎʽÏÔʾXMLÊý¾Ý¾ßÌåʵÀýÈçÏ£º
Ô­ÎĵØÖ·£ºhttp://www.phpwell.com/?p=71
......

HTMLµ÷ÓÃXMLÊý¾ÝʵÀý

ÎÄÕÂת×Ô¡¾PHP̽·Õß¡¿
XML Ó¦ÓÃÓÚ web ¿ª·¢µÄÐí¶à·½Ã棬³£ÓÃÓÚ¼ò»¯Êý¾ÝµÄ´æ´¢ºÍ¹²Ïí¡£
Èç¹ûÐèÒªÔÚ HTML ÎĵµÖÐÏÔʾ¶¯Ì¬Êý¾Ý£¬ÄÇôÿµ±Êý¾Ý¸Ä±äʱ½«»¨·Ñ´óÁ¿µÄʱ¼äÀ´±à¼­ HTML£¬
XML ¿ÉÒÔ°ÑÊý¾Ý´Ó HTML ÖзÖÀ뿪À´¡£
ͨ¹ý XML£¬Êý¾ÝÄܹ»´æ´¢ÔÚ¶ÀÁ¢µÄ XML ÎļþÖС£ÕâÑùÄã¾Í¿ÉÒÔרעÓÚʹÓà HTML ½øÐв¼¾ÖºÍÏÔʾ£¬²¢È·±£Ð޸ĵײãÊý¾Ý²»ÔÙÐèÒª¶Ô HTML ½øÐÐÈκεĸı䡣
ͨ¹ýʹÓü¸ÐÐ JavaScript£¬¾Í¿ÉÒÔ¶ÁÈ¡Ò»¸öÍⲿ XML Îļþ£¨XML½âÎö£©£¬È»ºó¸üРHTML ÖеÄÊý¾ÝÄÚÈÝ¡£
´ó¶àÊýä¯ÀÀÆ÷¶¼ÓжÁÈ¡ºÍ²Ù×÷ XML µÄÄÚ½¨ XML ½âÎöÆ÷¡£
½âÎöÆ÷°Ñ XML ת»»Îª JavaScript ¿É·ÃÎʵĶÔÏó¡£
ÔÚ HTML ÖÐÒÔ±í¸ñÐÎʽÏÔʾXMLÊý¾Ý¾ßÌåʵÀýÈçÏ£º
Ô­ÎĵØÖ·£ºhttp://www.phpwell.com/?p=71
......

ʲôÊÇXML¼°XMLºÍHTMLµÄÇø±ð

XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£    
Ó¦¸ÃÕÆÎյĻù´¡ÖªÊ¶£º
ÔÚÄú¼ÌÐøѧϰ֮ǰ£¬ÐèÒª¶ÔÒÔÏÂ֪ʶÓлù±¾µÄÁ˽⣺
HTML / XHTML
JavaScript or VBScript
ʲôÊÇXML?
XMLÖ¸¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨EXtensible Markup Language£©
XMLÊÇÒ»ÖÖ±ê¼ÇÓïÑÔ£¬ºÜÀàËÆHTML
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý
XML±êǩûÓб»Ô¤¶¨Òå¡£ÄúÐèÒª×ÔÐж¨Òå±êÇ©¡£
XMLʹÓÃÎļþÀàÐÍÉùÃ÷£¨DTD£©»òÕßXML SchemaÀ´ÃèÊöÊý¾Ý¡£
´øÓÐDTD»òÕßXML SchemaµÄXML±»Éè¼ÆΪ¾ßÓÐ×ÔÎÒÃèÊöÐÔ¡£
XMLÊÇÒ»¸öW3C±ê×¼
XMLÊÇÒ»¸öW3C±ê×¼
¿ÉÀ©Õ¹±ê¼ÇÓïÑÔÓÚ1998Äê2ÔÂ10ÈÕ±»È·Á¢ÎªW3C±ê×¼¡£ www.   
XMLÓëHTMLµÄÖ÷Òª²îÒì
XML±»Éè¼ÆÓÃÀ´Ð¯´øÊý¾Ý¡£
XML²»ÊÇÓÃÀ´Ìæ´úHTMLµÄ¡£
ÍøÒ³½ÌѧÍø
XMLºÍHTMLΪ²»Í¬µÄÄ¿µÄ¶øÉè¼Æ£º
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
HTMLÖ¼ÔÚÏÔʾÐÅÏ¢£¬¶øXMLÖ¼ÔÚÃèÊöÐÅÏ¢¡£
ûÓÐÈκÎÐÐΪµÄXML
XMLÊDz»×÷ΪµÄ¡£
Ò²ÐíÕâÓеãÄÑÒÔÀí½â£¬µ«ÊÇXML²»»á×öÈκÎÊÂÇé¡£XML±»Éè¼ÆÓÃÀ´½á¹¹»¯¡¢´æ´¢ÒÔ¼°´«ÊäÐÅÏ¢¡£
ÏÂÃæÊÇJaniд¸øToveµ ......

ʲôÊÇXML¼°XMLºÍHTMLµÄÇø±ð

XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£    
Ó¦¸ÃÕÆÎյĻù´¡ÖªÊ¶£º
ÔÚÄú¼ÌÐøѧϰ֮ǰ£¬ÐèÒª¶ÔÒÔÏÂ֪ʶÓлù±¾µÄÁ˽⣺
HTML / XHTML
JavaScript or VBScript
ʲôÊÇXML?
XMLÖ¸¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨EXtensible Markup Language£©
XMLÊÇÒ»ÖÖ±ê¼ÇÓïÑÔ£¬ºÜÀàËÆHTML
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý
XML±êǩûÓб»Ô¤¶¨Òå¡£ÄúÐèÒª×ÔÐж¨Òå±êÇ©¡£
XMLʹÓÃÎļþÀàÐÍÉùÃ÷£¨DTD£©»òÕßXML SchemaÀ´ÃèÊöÊý¾Ý¡£
´øÓÐDTD»òÕßXML SchemaµÄXML±»Éè¼ÆΪ¾ßÓÐ×ÔÎÒÃèÊöÐÔ¡£
XMLÊÇÒ»¸öW3C±ê×¼
XMLÊÇÒ»¸öW3C±ê×¼
¿ÉÀ©Õ¹±ê¼ÇÓïÑÔÓÚ1998Äê2ÔÂ10ÈÕ±»È·Á¢ÎªW3C±ê×¼¡£ www.   
XMLÓëHTMLµÄÖ÷Òª²îÒì
XML±»Éè¼ÆÓÃÀ´Ð¯´øÊý¾Ý¡£
XML²»ÊÇÓÃÀ´Ìæ´úHTMLµÄ¡£
ÍøÒ³½ÌѧÍø
XMLºÍHTMLΪ²»Í¬µÄÄ¿µÄ¶øÉè¼Æ£º
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
HTMLÖ¼ÔÚÏÔʾÐÅÏ¢£¬¶øXMLÖ¼ÔÚÃèÊöÐÅÏ¢¡£
ûÓÐÈκÎÐÐΪµÄXML
XMLÊDz»×÷ΪµÄ¡£
Ò²ÐíÕâÓеãÄÑÒÔÀí½â£¬µ«ÊÇXML²»»á×öÈκÎÊÂÇé¡£XML±»Éè¼ÆÓÃÀ´½á¹¹»¯¡¢´æ´¢ÒÔ¼°´«ÊäÐÅÏ¢¡£
ÏÂÃæÊÇJaniд¸øToveµ ......

ËÄÑÛ¿´ÊÀ½ç XMLÓï·¨


XML (EXtensible Markup Language)
XML is a
cross-platform, software and hardware independent tool for transmitting
information.
Prolog
XML
Declaration
Processing
Instructions
DOCTYPE
Declaration
Elements
Attributes
XML
Comments
CDATA
Sections
Character
and Entity References
XML
settings
XML processors
treat the character sequence Carriage Return-Line Feed (CRLF) like single CR or
LF characters. All are reported as a single LF character. Applications can save
documents using the appropriate line-ending convention.
Elements
XML documents must
contain one and only one root element
XML
Declaration
<?xml
version="1.0" encoding="UTF-8"?>
If used it must be the first line in the document and no other content or white space can precede it
Version
Declaration
The
version declaration is mandatory and the version number 1.0 is the latest
version currently
Encoding
Declaration
It
must contain a value representing an ex ......

gloox xmlµÄ½âÎöÄ£¿é

gloox×Ô¼ºÊµÏÖÁËxmlµÄ½âÎöÄ£¿é£¬Ã»ÓÐÓõ½µÚÈý·½µÄ¿â(tinyXML£¬expat )
Ö÷ÒªÉæ¼°µÄÎļþ:
tag.h (tag.cpp)
taghandler.h
parser.h (parser.cpp)
1. TagÒ»¸öTag¾ÍÊÇÒ»¸öXMLÔªËØ
ÀýÈç:
a.
<book kind='computer'>
<store id='23'/>
<author>
    qiang
</author>
</book>
b. <book id='32'/>
c. <book>name1</book>
Ê×ÏȽéÉÜÒ»¸ö¸ÅÄî: escape-string£¬ºÎΪescape-string?
ÔÚescape-stringÖÐ:
'&'ת»»³É&amp;, '<'ת»»³É&lt;, '>'ת»»³É&gt;.
±àÂë±íÈçÏÂ:
//////////////////////////////////////////////////////////////////////////
// ±àÂë±í £¨ÖмäµÄ¿Õ¸ñÈ¥µô£¬ÕâÀïÖ»ÊÇΪÁË·½±ãÏÔʾ£©:
// -------------------------------------------------------
// | ×Ö·û     | Ê®½øÖÆ | Ê®Áù½øÖÆ | THML×Ö·û¼¯ | Unicode |
// -------------------------------------------------------
// | " Ë«ÒýºÅ | & # 34; | & # x22;   | "          | \u0022 |
// ------------------- ......

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ÓÐÄÄЩÓÃ;?

XMLÊDZ»Éè¼ÆΪ´æ´¢¡¢´«ÊäÒÔ¼°½»»»Êý¾ÝµÄ¡£XML²»ÊDZ»Éè¼ÆΪÓÃÀ´ÏÔʾÊý¾ÝµÄ¡£
¡¡¡¡XML¿ÉÒÔ½«HTMLÓëÊý¾Ý·ÖÀë
¡¡¡¡Í¨¹ýʹÓÃXML£¬ÄúµÄÊý¾Ý¿É´æ´¢ÓÚHTMLÖ®Íâ¡£
¡¡¡¡µ±ÎÒÃÇʹÓÃHTMLÀ´ÏÔʾÊý¾Ýʱ£¬Êý¾Ý´æ´¢ÓÚHTMLÖС£Í¨¹ýʹÓÃXML£¬Êý¾Ý¿ÉÒÔ±»´æ´¢ÔÚµ¥¶ÀµÄXMLÎļþÖС£ÕâÑù×öµÄ»°£¬Äú¾Í¿ÉÒÔ°Ñ×¢ÒâÁ¦¼¯ÖÐÔÚʹÓÃHTML½øÐÐÊý¾Ý²¼¾ÖºÍÏÔʾÉÏÃ棬²¢È·±£µ×²ãÊý¾ÝµÄ¸Ä±ä²»»áÇ£³¶µ½HTMLµÄ¸Ä±ä¡£
¡¡¡¡XMLÊý¾ÝÒ²¿É×÷ΪÊý¾Ýµº´æ´¢ÓÚHTMLÒ³ÃæÄÚ²¿¡£ÄúÈÔÈ»¿ÉÒÔרעÓÚʹÓÃHTML¶ÔÊý¾Ý½øÐиñʽ»¯ºÍÏÔʾ¡£
¡¡¡¡XMLÓÃÓÚ½»»»Êý¾Ý
¡¡¡¡Í¨¹ýʹÓÃXML£¬¿ÉÒÔÔÚ»¥²»¼æÈݵÄϵͳ¼ä½»»»Êý¾Ý¡£ ÍøÒ³½ÌѧÍø
¡¡¡¡ÔÚÏÖʵÊÀ½çÖУ¬¼ÆËã»úϵͳºÍÊý¾Ý¿âͨ¹ý»¥²»¼æÈݵĸñʽÀ´ÈÝÄÉÊý¾Ý¡£¶Ô¿ª·¢ÈËÔ±À´Ëµ£¬ÆäÖÐÒ»Ïî×î·ÑʱµÄÌôÕ½Ò»Ö±ÊÇÔÚÒòÌØÍøÉϵÄϵͳ֮¼ä½»»»Êý¾Ý¡£
¡¡¡¡Í¨¹ý½«Êý¾Ýת»»ÎªXML£¬¿ÉÒÔ¼«´óµØ½µµÍÕâÖÖ¸´ÔÓÐÔ£¬²¢´´½¨¿É±»Ðí¶à²»Í¬ÀàÐ͵ÄÓ¦ÓóÌÐò¶ÁÈ¡µÄÊý¾Ý¡£ ÍøÒ³½ÌѧÍø
¡¡¡¡XMLºÍB2B
¡¡¡¡Í¨¹ýʹÓÃXML£¬¿ÉÒÔÔÚÒòÌØÍøÉϽ»»»½ðÈÚÐÅÏ¢¡£
¡¡¡¡ÔÚ²»¾ÃµÄ½«À´£¬Ô¤¼Æ»áÓкܶà¹ØÓÚXMLºÍB2BµÄÓ¦Óá£
¡¡¡¡XML»á³ÉΪÆóÒµ¼ä½»»»½ðÈÚÐÅÏ¢µÄ×îÖ÷ÒªµÄÓïÑÔ¡£
¡¡¡¡XML¿É±»ÓÃÀ´¹²ÏíÊý¾Ý
¡¡¡¡Í¨¹ýʹÓÃXML£¬´¿ÎÄ ......
×ܼǼÊý:815; ×ÜÒ³Êý:136; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [127] [128] [129] [130] [131] 132 [133] [134] [135] [136]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ