>> English << | česky | Español | Português | Türkçe | Nederlands | По-русски | Deutsch | Français | Italiano | 中文 | ქართული | Magyar | PolskiZVON > Tutorials > XML Tutorial
>> Example 10 << | Prev | Next | Contents

Description

Comments may appear anywhere in a document outside other markup. An XML processor may, but need not, make it possible for an application to retrieve the text of comments. The string "--" (double-hyphen) must not occur within comments.

Well-formed documents


Comment can contain any characters apart from --:


<!-- doc A -->

<example>

<!-- <HEAD>  -->

<!-- Characters <&<  -->

</example>


Documents with errorsTop


Comment must not contain --:


<example>

     <!-- A -- B -->

</example>