• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

CDATA Sections

You have learned how to escape markup characters by using the predefined entities and character references. It doesn't take much imagination to realize that replacing every markup character in a piece of text could be a long and tedious process. In addition, cases may occur (such as when you are sending the XML code on for further processing by a different application) when you really want to keep all those characters exactly as they are.

The way to do this is to use a CDATA (character data) section, like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint