![]() Ī consequence of this rule is that a comment must not end with “->” (three dashes followed by a right-angle-bracket). In addition, the string “–” must not appear within comments. Within comments, none of the 5 special characters must be escaped or encoded. CommentsĬomments can appear anywhere in a document outside of markup. Similarly “‘” is not valid within single quotes. However, ‘”‘ is not valid within double quotes it must be encoded using “'”. The following is valid as “>” has been encoded properly: However, “>” cannot appear in the form “]]>” unless it is a part of CDATA ending sections. ![]() Within character data, “&” and “”, “”” and “‘” can appear directly within character data without having to be encoded. These characters are: " ' Double quoteĪll text that is not markup constitutes character data of the document. These are the characters which are used to markup XML syntax when they appear as a part of a document rather than for syntax markup, they need to be appropriately escaped. Some characters are treated specially when processing XML documents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |