XML 被設(shè)計用來傳輸和儲存資料。

HTML 被設(shè)計用來顯示資料。

XML 語法規(guī)則 語法

XML 的語法規(guī)則很簡單,而且很有邏輯。這些規(guī)則很容易學(xué)習(xí),也很容易使用。

XML 語法規(guī)則 範(fàn)例

<?xml version="1.0" encoding="UTF-8"?>
<note>
  <to>Tove</to>
  <from>Jani</from>
  <heading>Reminder</heading>
  <body>Don't forget me this weekend!</body>
</note>