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
In reply to Re^3: How can I use XML::Simple parser to read and parse greater then (>), less then (<) and ampersand (&) symbol..
by amias
in thread How can I use XML::Simple parser to read and parse greater then (>), less then (<) and ampersand (&) symbol..
by sarf13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |