Comments start with the string : Comments « Introduction « XML Tutorial






<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>








1.6.Comments
1.6.1.Comments start with the string