Dealing with data in XML

Use the CDATA section effectively

Return to article

Text version of CDATA sections plus incorrect characters as displayed in Safari and Chrome (Figure 2)
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