Mega Code Archive

 
Categories / XML Tutorial / Introduction
 

Comments start with the string !--and end with the string --

<name nickname='007'>      <first>James</first>      <!--James does not have middle name -->      <middle></middle>      <last>Bond</last>  </name>  You can't have a comment inside a tag, so the following is illegal:  <name nickname='007'>      <first>James</first>      <middle></middle <!--James does not have middle name -->  >      <last>Bond</last>  </name>  You can't use the double-dash string (--)inside a comment:  <name nickname='007'>      <first>James</first>      <middle></middle <!--James does -- not have middle name -->  >      <last>Bond</last>  </name>