Multiple choice technology web technology

For the XML parser to ignore a certain section of your XML document, which syntax is correct?

  1. <CDATA> Text to be ignored </CDATA>

  2. <PCDATA> Text to be ignored </PCDATA>

  3. <xml:CDATA[ Text to be ignored ]>

  4. <![CDATA[ Text to be ignored ]]>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The correct syntax for XML parser to ignore content is . This tells the parser to treat the content as character data rather than markup. CDATA sections are used for text that might contain special characters like < or & that should not be interpreted as XML.