[nycphp-talk] xml_parse and CDATA
Scott Mattocks
scott at crisscott.com
Tue Feb 8 12:29:47 EST 2005
Hello,
I am having some trouble parsing XML files and determining what is text
between two elements (<tag>Some text</tag>) and what is text inside
<![CDATA[ ... ]]>. xml_parse() is giving both types of text to the
function I set as the cdata handler but it doesn't give any indication
of whether or not in was inside a CDATA tag. It acts as if the <![CDATA[
part wasn't there at all.
Does anyone have any tips on how to tell if this is text between two
tags or text following a <![CDATA[?
Thanks,
--
Scott Mattocks
scott at crisscott.com
http://www.crisscott.com
More information about the talk
mailing list