<?xml version="1.0" encoding="windows-1252"?>
<node id="1008490" title="Re^3: How can I use XML::Simple parser to read and parse greater then (&gt;), less then (&lt;) and ampersand (&amp;) symbol.." created="2012-12-12 06:36:49" updated="2012-12-12 06:36:49">
<type id="11">
note</type>
<author id="944762">
amias</author>
<data>
<field name="doctext">
&lt;p&gt;You should  enclose them in a CDATA block to keep them safe from the parser , all parsers should respect this. &lt;/p&gt;

&lt;code&gt; &lt;tag&gt;&lt;![CDATA &lt;?&gt;&amp;;]!&gt; ]]&gt;&lt;/tag&gt;&lt;/code&gt;

&lt;p&gt;the only thing you cannot put in CDATA is ]]&gt; as its the CDATA terminator , however if its essential then you could do something like&lt;/p&gt;

&lt;code&gt;&lt;tag&gt;&lt;![CDATA ]]]]&gt;&lt;![CDATA &gt;]]&gt;&lt;/tag&gt;&lt;/code&gt;

&lt;p&gt;for the full info see
http://www.w3schools.com/xml/xml_cdata.asp
&lt;/p&gt;</field>
<field name="root_node">
982796</field>
<field name="parent_node">
982806</field>
</data>
</node>
