<div>Hi,</div>
<div> Recently ,I just turn to Python from C#.However ,as a dynamic language .</div>
<div>Python and C# was so different.</div>
<div> </div>
<div> Now ,I want to get some record from an XML file,The format of the XML file as follow:</div>
<div>...............................</div>
<div><font color="#ff0000"><Doc rID="T1" ><br> <DName><![CDATA[Release Truck]]></DName><br> <Res><![CDATA[Res18]]></Res></font></div>
<div><font color="#ff0000"></font> </div>
<div><font color="#ff0000"> <DT rID="T2"><br> <NodeArgs eType="Table" icon="2" nRep="5" filter="False" ><br> <Disp><![CDATA[Run-Time Data]]></Disp>
<br> <BtmPane vType="Table"><br> <Path><![CDATA[Default.xls]]></Path><br> </BtmPane><br> </NodeArgs><br> </DT></font></div>
<div><font color="#ff0000"></font> </div>
<div><font color="#ff0000"> <NodeArgs eType="StartTest" icon="1" nRep="4" status="Failed" ><br> <Disp><![CDATA[Test Release Truck Summary]]></Disp><br>
</NodeArgs></font></div>
<div><font color="#ff0000"></font> </div>
<div><font color="#ff0000"></Doc></font></div>
<div>....................................</div>
<div> </div>
<div>when i use the minidom to parase the XML file,it would ignored the section of <font color="#ff0000"><![<font color="#ff0000">CDATA[.......]></font></font></div>
<div><font color="#000000">the code is:</font></div>
<div> </div>
<div>_document=minidom.parse("filePath")</div>
<div>_documnetList=_document.getElementsByTagName("NodeArgs")</div>
<div>for _argNode in _documnetList: </div>
<div> <font color="#ff0000">print _argNode.nodeValue,_argNode.localName</font></div>
<div><font color="#ff0000"></font> </div>
<div><font color="#000000">when it run. The nodeValue of the CDATA Section is always None,Is my code error?</font></div>
<div>and how should i do when i want to get the value of the in the CDATA section?</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>