天天看點

IBM網站上給出的XML的介紹(4)不完全摘錄

Elements are case sensitive Page 6 of 10

這裡說的是:XML是一種“強類型标記語言”(區分大小寫)

XML elements are case sensitive.

In HTML, <h1> and <H1> are the same; in XML, they\'re not. If you try to end an <h1> element with a </H1> tag, you\'ll get an error. In the example below, the heading at the top is illegal, while the one at the bottom is fine.

<!-- NOT legal XML markup -->
<h1>Elements are 
  case sensitive</H1>

<!-- legal XML markup -->
<h1>Elements are 
  case sensitive</h1>



      
IBM網站上給出的XML的介紹(4)不完全摘錄