NYCPHP Meetup

NYPHP.org

[nycphp-talk] xml_parse and CDATA

Adam Maccabee Trachtenberg adam at trachtenberg.com
Tue Feb 8 12:42:52 EST 2005


On Tue, 8 Feb 2005, Scott Mattocks wrote:

> 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.

This is a known bug and marked as Won't Fix.

http://bugs.php.net/bug.php?id=31779

-adam

-- 
adam at trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list