HOME

 

 

¨ººÖ©¾¡Aª¾¦W¹q¤l¥Xª©±M®a¡Bºô¸ô§@®a¡C
   
  ¤ÀÃþ¼s§iXMLªº»s§@
  ¨ººÖ©¾ October 10, 1998
  ½Ð§â§Aªº·Qªk¼g«Hµ¹§Ú¡G [email protected]
   

  ¬ü°ê³ø·~¨ó·| NAA¡A¬Ý¨ì¤ÀÃþ¼s§i¤éº¥¤Wºô¡A±N¶Ç²Î¦L¨ê½Z¨Ó¾AÀ³ºô¸ô¯S©Ê¡]¹³¬d¸ß¡^¡A¤£¦ý§xÃø¡A¦Ó¥B¨C®a³øªÀ©Î¼s§i¥N²z°Ó§ó¬O¦UÅ㥻»â¡A§A°µ§Aªº§Ú°µ§Úªº¡C©Ò¥H¤µ¦~¬K©uµÛ¤â¬ã¨s²Î¤@®æ¦¡¤§Ä³¡A¨Ï¤§¬J¯à¦L¨ê¤S¯à¤Wºô¡A¦Ó¥B¦U³ø¥æ´«¤]§ó¬°®e©ö¡C²{¦b¦³¤Fªì½Z¡AXML ªº DTD¡]Document Type Definition¡^¤Î Data Element¡CXML¡]eXtensible Markup Language¡^±q¥h¦~°_¤j®a´N¬Ý¦n¡A¤µ¦~ªì W3C ±À¥X 1.0 ª©¥»¤§«á¡A§ó¬O¬y¦æ°_¨Ó¡CXML ªº»s§@¥»·N¡A¥i¯à¦bºô¤W¥Î³~¡A¹³ Microsoft ªºChannel Definition Format¡]CDF¡^¡A¨Ï Push ªº°Ê§@²³æ¤£¤Ö¡C¦ý·U¦hªº¤H¤F¸Ñ XML¡Aµo²{ XML ªº¨Ï¥Î¨Ã¤£­­©óºô¤W§@·~¡A§@¦ó¤å¥ó¡B¸ê®Æªº¶Ç»¼¡A³£¥i¥H XML §@¬°¼Ð·Ç³W®æ¡A¨Ï¤£¦Pªº¹q¸£¥­¥x¡B¤£¦Pªº¦æ·~¡B¤£¦Pªº¾÷ºc¡A¸ê®Æ±o¥H¬y³q¡C»¡ XML ¬O¤@ºØ¡u»y¨¥¡v¡A¹ï²ßºD©ó¹q¸£µ{¦¡»y¨¥¡B©Î¸ê®Æ®w»y¨¥ªº¤H¨Ó»¡¡A¬O¤@ºØ»~¾É¡CÄY®æªº»¡¡AXML ¥u¬O¤@®M»yªkªº³W¶Z¡A¥Î³o®M³W¯x¡A¦A»s­q¹ê»ÚÀ³¥Îªº»y¨¥¡C©Ò¥H XML ¬O Meta Language ºÙ¤§¬°¡u©|¤è»y¨¥¡v¡A¥Î¥H»s§@§Oªº»y¨¥ªº»y¨¥¡CXML ¬O SGML¡]Standard Generalized Markup Language¡^²¤Æªºª©¥»¡A¦b XML ¥H«e¡A¤w¸g¦³³\¦h¦a¤è¥Î SGML »s§@±M¥Î»y¨¥¡A³Ì¼ô±xªº¨Ò¤l´N¬Oºô¯¸ÂsÄý¾¹ HTML »y¨¥¡C¨ä¥L¦p±MÄݦæ·~ªº¡]¦p¬ü°ê¤Æ¾Ç¾Ç·|¡^¡B¤j«¬¾÷ºc¤º¥Îªº¡]¦p¬ü°ê°ê¨¾³¡¡^¡A¤£³ÓªTÁ|¡C¥Î XML ©Î SGML »yªk»s§@¥X¨Óªº»y¨¥¡AÁٻݭn¯à¸ÑĶ³o®M»y¨¥ªº³nÅéµ{¦¡¡]³q±`ºÙ¤§¬° Parser¡^¡A¦X°_¨Ó´N¥i¥H¦b¹q¸£ùعê»Ú¹B§@¤F¡C¦]¬° XML »yªk¸Ñ»¡ÄYÂÔ¡A©Ò¥H¸ÑĶ³nÅé Parser ¨Ã¤£Ãø°µ¡A¤Ï¦Ó¬O¨Ì¾Ú¦æ·~©Î¾÷ºc¤º³¡¨Ó»s­q¹ê¥Î»y¨¥¡A¸û¬°§xÃø¡CXML ªº»yªk¡A»P HTML Ãþ¦ü¡A¥H Tag ¨Ó´y­z¤å¥ó¤Î¸ê®Æªºµ²ºc¡CTag ¬O³Ì°ò¥»ªº¸ê®Æ³æ¤¸¡]Data Element¡^¡A¦Ó DTD «h¹ï Tag ªºÄÝ©Ê»Pµ²ºc©w¸q¡C©Ò¥H¥Î XML »yªk¡A§â¤å¥ó»P¸ê®Æ·U¬O²Ó¤À¡A·U¯àµo´§¨äÀuÂI¡C³o¦¸¬ü°ê³ø·~¨ó·|¡A±N¤ÀÃþ¼s§iªº¸ê®Æµ²ºc¤À¸Ñ¡A²Ó¤À±o·¥¬°¸ÔºÉ¡A¤ÀÃþ¼s§i¤W¥i¯à¥X²{ªº¥þ³¡¶µ¥Ø¡B¤º®e¸Ñ»¡¡A¦@µ²ºc¤Æ¦C¥X¼Æ¦ÊºØ¡C¦¹¤@³]­p¡]¥iºÙ¤§¬°¤ÀÃþ¼s§i Markup Language¡^¤@¥¹§¹¦¨¡A¥²·|¦³¤£¤Ö¤H»s§@¦UºØ³nÅé¡]¿é¤J¡B¸ÑÄÀ¡B¦sÀɵ¥¡^¡A¤£¦ý¬ü°ê¤ÀÃþ¼s§i¥i¦b¬ü°ê¦Û¥Ñ¶Ç»¼¡A¥þ²y¤ÀÃþ¼s§i¤]¥¼¹Á¤£¥i¥H¦¹ DTD ¬°·Ç«h¡A¨Ï±o¤@«h¼s§i¡A¥þ²yºZ³q¡CXML ªº¦n³B¡A´N¦b³o¸Ì¡C¥H¡u¨T¨®¡v¡]Auto¡^¬°¨Ò¡A´N§â¥¦¤À¸Ñ¬° 30 ¦h­Ó²Ó¶µ¡A°£¤F©Ê¯à¤WªºÄݩʦp¨®ÜLÃþ§O¡B³t«×µ¥¥H¥~¡A¹³«OÀI¡B¸g¾P°Óµ¥¨Æ°ÈÄݩʤ]¥]§t¦b¤º¡A¦]¬°¨T¨®¼s§i·¥¥i¯à¥Zµn³o¨Ç¨Æ±¡¡C©Ò¥H¥H«á¥Zµn¤@«h½æ¨T¨®¼s§i¡A¦pªG¥H³oºØ°²³]ªº¡u¤ÀÃþ¼s§i Markup Language¡v¨Ó»s§@¡A´N¦p¦P¥H¤Uªº¨Ò¤l¡C<¨T¨®¥X°â><¦~¤À> 1995 ¦~</¦~¤À><¼tµP>¤T¶§</¼tµP><«¬¸¹>³ß¬ü</«¬¸¹><®y¦ì> 5 ¤H®y</®y¦ì><¨®¨­±m¦â>¶Â¦â</¨®¨­±m¦â><­q»ù> 59 ¸U 9 ¥a¤¸</­q»ù><¸g¾P°Ó> ABC ¨T¨®¤½¥q¤ý¸g²z</¸g¾P°Ó><¹q¸Ü> 1234-5678 </¹q¸Ü></¨T¨®¥X°â>¥H¤Wªº¨Ò¤l¡A¨C¤@ Tag ¥H <> °_©l¡A¥H </> µ²§ô¡ATag ªº¦WºÙ¡]¹³¡u¹q¸Ü¡v¡u¸g¾P°Ó¡v¡^«h¬O»y¨¥»s­q¦b DTD ©w¸qªº¡C±`µM¡A³o«h¼s§i¤£·|´N¥H¤Wªº¼Ë¤l§e²{¡AµL½×¦L¨ê»P¤Wºô¡A³£»Ý­n¸g¹LÂà´«¡A¥H¾A·íªº®æ¦¡§e²{¡C³o¤]¥¿¬O XML ªºÀuÂI¡A¦]¬°¤º®e¤£¯A¤Î¦p¦ó®i²{¡]¤j¤p¡B¦â±m¡B¦rÅé¡B°ÝÃDµ¥µ¥¡^¡A©Ò¥H¤~¯à¸ó¶V¦UºØ¥­¥x»P¦æ·~¡C§â¤@«h­ì¥»¬Ý°_¨Ó²³æªº½æ¨®¼s§i¤À¸Ñ¦¨³o»ò²Ó¡A¦n³B¨s³º¦b¨ºùØ¡H³Ì©úÅ㪺¬O¬d¸ßªº«K§Q¡A¦]¬°¥i¥Î¨C¤@­Ó Tag ³æ¿W¡]©Îµ²¦X§Oªº Tag¡^§@¬d¸ß¡C¨Ò¦p¥H <­q»ù> <¸g¾P°Ó> <¨®¨­±m¦â> ³£¯à§ä¨ì³o½ø¨T¨®¡A³o¬O¶Ç²Î¼s§i©Ò°µ¤£¨ìªº¡C¥t¥~ªº¦n³B¬O¦A¦¸¨Ï¥Î®e©ö¡A¤ñ¦p»¡ ABC ¨T¨®¤½¥q¤ý¸g²zÂ÷¾¤F¡A´«¦¨±i¸g²z¤F¡A¥u­n§â <¸g¾P°Ó> Tag §ï¤@¤U´N¦æ¤F¡C¦pªG´«¤F¤@®a¸g¾P°Ó¡A¤]¬O¤@¼Ë¡C

XML µ²ºc²³æ¡A¥H Tag ¬°¥Dªº°ß¤@¤è¦¡¡A¹q¸£¬Ý±oÀ´¡A¤H¤]¬Ý±oÀ´¡C¤£¹³¸ê®Æ®w¶Èµ¹¹q¸£¬Ýªº¡C¦ù©µ©Ê¡]Extensibility¡^¤]¬° XML ªº¤@ÀuÂI¡ATag ¥Ñ¨Ï¥ÎªÌ¦Û­q¡A¦³µL­­ªº¦ù©µ©Ê¡A¦Ó XML »yªk¥»¨­¤]¤@ª½¦b¦ù©µ¡A¹³ XSL¡]eXtensible Style Language¡^§â½s±Æ®æ¦¡¦C¤J¡ADOM ¡]Document Object Module¡^¥[¤J¨Ï¥Îµ{¦¡¤¶­±µ¥¡A³£¬O XML »yªk¥»¨­ªº©µ¦ù¡C¥t¥~¡AXML ¤£¬O·s§Þ³N¡A¨ä¡u¥À»y¡vSGML ¦­¤w¦³¤@§å±M®a¦b¨Ï¥Î¡A©Ò¥H¨S¦³§Þ³N°ÝÃD¡C·íµM¡A¸ê°T³B²zªºÆ[©À»Ý§@§ïÅÜ¡A¤]³\·|²£¥Í¤@¨Ç¼È®Éªº°ÝÃD¡C

¤W¤@½g ¢x   ¤U¤@½g ¢x ¯Á ¤Þ