I am having a problem while parsing XML with nested CDATA section. The CDATA section is as below:
<![CDATA[*** some text
[ ! <![CDATA[some text]]> ! ]
<![CDATA[some text]]>
]]>
When this type of data is appearing in an XML tag, it is giving an error while parsing the XML as there are two closing tags ]]>. Can anyone please suggest me what to do or what character should I escape to make this work? I am using Java1.8.