I always tend to forget the correct syntax for the CDATA section in XML. With NetBeans I simply type !cd and press the TAB key and NetBeans inserts a new CDATA section in the document.
!cd