Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does <! ... !> mean in XML?

What does <! ... !> mean in XML?

This <? ... ?> specifies a processing instruction according to this, but I found no information regarding the first one.

like image 323
ar36el Avatar asked Mar 01 '26 06:03

ar36el


1 Answers

<! ... !> is not an XML construct due to the ending !>.

However, the following XML constructs do begin with <!:

  • <!-- begins a comment, which ends with -->

  • <![CDATA[ begins a CDATA section, which ends with ]]>

  • <![INCLUDE[ and <![IGNORE[ begin conditional sections, which end with ]]>.

  • <!DOCTYPE begins a document type declaration.

  • <!ELEMENT begins an element type declaration.

  • <!ATTLIST begins an attribute list declaration.

  • <!ENTITY begins an entity declaration.

  • <!NOTATION begins a notation declaration.

The ending of each of the above constructions is > unless otherwise mentioned.

like image 56
kjhughes Avatar answered Mar 03 '26 22:03

kjhughes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!