http://www.perlmonks.org?node_id=1008490


in reply to Re^2: How can I use XML::Simple parser to read and parse greater then (>), less then (<) and ampersand (&) symbol..
in thread How can I use XML::Simple parser to read and parse greater then (>), less then (<) and ampersand (&) symbol..

You should enclose them in a CDATA block to keep them safe from the parser , all parsers should respect this.

 <tag><![CDATA <?>&;]!> ]]></tag>

the only thing you cannot put in CDATA is ]]> as its the CDATA terminator , however if its essential then you could do something like

<tag><![CDATA ]]]]><![CDATA >]]></tag>

for the full info see http://www.w3schools.com/xml/xml_cdata.asp