A XML file having CDATA node

"Xinzhi Zhao" <[email protected]> Thu, 18 Dec 2003 02:46:11 +0000
Newsgroups gmane.comp.web.zope.parsed-xml
Message-ID <[email protected]>
I am making a study of Python+XML at present. I must know the Python's
capability in XML clearly. DOM or SAX? Perhaps they would both be used in
my project.I want to know if Python2.3 has a method to get the string
involved in the  CDATA node?
Well,exactly, If I use the SAX interface,how define a handler for CDATA
events?And if I use DOM, how can I find the node CDATA and then
change the string in it?
My XML is shown below,

--------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- A problem to get value in CDATA block -->
<problem>
<title>My problem</title>
<content>How can I get the string shown in the CDATA node?</content>
<![CDATA[ "Please help me." ]]>
</problem>
--------------------------------------------------------------------------------------------------

Please give me a example.

Many thanks.

--Xinzhi Zhao

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail