Dealing with data in XML

Use the CDATA section effectively

Return to article

Text version of CDATA sections plus incorrect characters as displayed in Internet Explorer 8 (Figure 3)
CDATA Section in Action

A sample paragraph:

The pug snoring on the couch next to me is extremely cute.

Markup version:

<p>The pug snoring on the couch next to me is <em<extremely</em> cute.</p>

CDATA version:

Uh, The pug snoring on the couch next to me is extremely cute.

]]> where?

Wait, what?

Return to article