<DIV id=RTEContent>I am having problem with parsing CDATA section. I am using PyXml and minidom for parsing the xml document. </DIV>  <DIV>My motive is to get the data back in the same format in one string as it is writen in xml file. Here is the sample:</DIV>  <DIV>--</DIV>  <DIV>&lt;StateChg&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;![CDATA[<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check.. its cdata section</DIV>  <DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all data is printed in it s format<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]]&gt;<BR>&lt;StateChg&gt;</DIV>  <DIV>--</DIV>  <DIV>put when I print all its childs using:</DIV>  <DIV>---</DIV>  <DIV>&nbsp;print StChg.childNodes&nbsp; #StChg. is instance to &lt;StateChg&gt; element</DIV>  <DIV>--</DIV>  <DIV>It gives following output</DIV>  <DIV>--</DIV> 
 <DIV>[&lt;DOM Text node "\n"&gt;, &lt;DOM Text node "\t\t\t\t \t"&gt;, &lt;DOM Text node "\n"&gt;, &lt;DOM Text node "\t\t\t\t\t chec..."&gt;, &lt;DOM Text node "\n"&gt;, &lt;DOM Text node "\t\t\t\t\t all ..."&gt;, &lt;DOM Text node "\n"&gt;, &lt;DOM Text node "\t\t\t\t\t "&gt;, &lt;DOM Text node "\n"&gt;, &lt;DOM Text node "\t\t\t\t\t"&gt;]<BR>--</DIV>  <DIV>&nbsp;</DIV>  <DIV>The output Shows it is text node but we had declare it as CDATA_SECTION_NODE.</DIV>  <DIV>&nbsp;</DIV>  <DIV>and also the output is not desired ( format lost and some data is lost), </DIV>  <DIV>&nbsp;</DIV>  <DIV>Why its happening. What I have to do to get the same output&nbsp;as in xml&nbsp;with the format and indentation.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Please,correct me, where I am wrong<BR></DIV><p>
                <hr size=1>Yahoo! Shopping<br> 
Find Great Deals on Holiday Gifts at <a href="http://us.rd.yahoo.com/mail_us/footer/shopping/*http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1 
">Yahoo! Shopping</a>