![]() |
CDATA sections are a mechanism in XML for handling character data that might otherwise be misinterpreted by the XML parser. CDATA stands for Character Data. These sections include blocks of text within an XML document that the parser should treat literally, without interpreting any characters as XML markup. This is helpful when the text contains characters that would normally have special meaning in XML, such as < (less than sign) > (greater than sign) and & (ampersand). Syntax:<![CDATA[ where:
Rules for CDATA
Example: The example below shows an example of CDATA, each character written inside the CDATA section is ignored by the parser. everything between <message> and </message> is treated as character data and not as markup.
Output: This is a message with < and > symbols |
Reffered: https://www.geeksforgeeks.org
Web Technologies |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |