Link: frankcc: Question regrading CDATA.
However, I have problem understand what exactly does CDATA section do? What’s the difference between this CDATA section and comment? Could anyone help me here?
A comment is generally not processed but must conform to the rules of well-formednesss. CDATA is not processed and does not have to conform to the rules of well-formedness. People usually use CDATA sections as a convenient place to put data that they want in the document but that they cannot guarantee will conform to the rules of well-formedness. Comments are just there to document what is going on.