Re: How to parsing a XML file which having CDATA tag

"Fred L. Drake, Jr." <[email protected]> Tue, 16 Dec 2003 11:03:11 -0500
Newsgroups gmane.comp.web.zope.parsed-xml
Message-ID <[email protected]>
On Tue, 16 Dec 2003 15:19:03 +0000
 "Xinzhi Zhao" <[email protected]> wrote:
 > How to parsing a XML file which having CDATA tag?
 > please tell me the way to get the value in the tags.
 > 
 > My example XML file is shown as below,
 > ------------------------------------------------------
 > <?xml version="1.0" standalone="yes"?>
 > <![CDATA[Please help me!]]>
 > -----------------------------------------------------

This is not a well-formed XML document at all.  "CDATA" is
not a tag at all.

You probably want something like this:

<?xml version="1.0" standalone="yes"?>
<doc>Please help me!</doc>


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation