XML Tutorial/Introduction/Comments
Версия от 18:22, 25 мая 2010; (обсуждение)
Comments start 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>