Wattle Software - producers of XMLwriter XML editor
 Home | Search | Site Map 
XMLwriter
 Screenshots
 Features
 About Latest Version
 Awards & Reviews
 User Comments
 Customers
Download
 Download XMLwriter
 Download Plug-ins
 Download Help Manual
 MSXML Updates
 Downloading FAQ
Buy
 Buy XMLwriter
 Pricing
 Upgrading
 Sales Support
 Sales FAQ
Support
 Sales Support
 Technical Support
 Submit a Bug Report
 Feedback & Requests
 Technical FAQ
Resources
 XML Links
 XML Training
 XMLwriter User Tools
 The XML Guide
 XML Book Samples
Wattle Software
 About Us
 Contact Details
CDATA Section

CDATA sections are used to display markup without the XML processor trying to interpret that markup. They are particularly useful when you want to display sections of XML code.

<![CDATA[

any characters (including markup)

]]>

Example:
<?xml version="1.0"?>
<!DOCTYPE body [
    <!ELEMENT body (#PCDATA)>
]>

<body>

    <![CDATA[
    
    Here is an example of an internal DTD:
    <!DOCTYPE lab_group [
        <!ELEMENT lab_group (student_name)*>
        <!ELEMENT student_name (#PCDATA)>
        <!ATTLIST student_name student_no ID #REQUIRED>
        <!ATTLIST student_name tutor_1 IDREF #IMPLIED>
        <!ATTLIST student_name tutor_2 IDREF #IMPLIED>
    ]>

    ]]>

</body>

Rules:

  • The string ']]>' cannot be placed within a CDATA section, therefore, nested CDATA sections are not allowedwell-formedness constraint.


XML Guide TOC

XML Declaration
DOCTYPE Declaration & DTDs
ELEMENT Type Declaration
ATTLIST Declaration
ENTITY Declaration
NOTATION Declaration
CDATA Section
Processing Instruction
Conditional Section
Comments

Glossary

© Wattle Software 1998-2017. All rights reserved.