I am trying to remove the following patterns from an xml
file:
<![CDATA[
]]>
For this purpouse I used the following sed
command from Remove CDATA tags from XML file:
sed -e 's/<![CDATA[//g' | sed -e 's/]]>//g' file.xml
The problem is that I am not being able to locate these patterns. It is printing the whole text with the patterns all over again.
<text>
<![CDATA[
ethnic minority communities have been in Belfast since the 1930s.]]>
<\text>
Previous questions
- How to remove CDATA from my xml parser? uses JAVA
- how to remove CDATA from xml in java code uses JAVA