What is the CDATA in XML?

CDATA (meaning character data) is used for different but related purposes in the SGML and XML markup languages. The term CDATA is used for textual data that should not be parsed by an XML parser. The characters "<" and "&" are not allowed within XML elements. The "<" character will throw an error because the parser will interpret it as the start of a new element. The "&" character will throw an error because the parser will interpret it as the start of a character entity. The parser completely ignores everything inside the CDATA section. The CDATA section starts with "<![CDATA[" and ends with "]]>".

XML

The best online tool for API developers
  • Test REST, SOAP and HTTP API endpoints online
  • Execute Python, JavaScript, PHP and JAVA code right in your browser
  • Format and validate JSON and XML strings
  • Share and discuss your code online
  • Clean UI and easy to use
  • It's free
Trusted by 850,000+ API Developers