Hi,
I extended the very basic XML example 1 at http://www.php.net/manual/en/ref.xml.php by adding a character_data_handler() that just outputs everytime its called. It works perfectly but I noticed that if my xml looks like
<foo>bar</foo> the character data handler is called once, and if my xml looks like:
<foo>
bar
</foo>
the character data handler is called 3 times. Which is not what I expected, since I thought the handler would be called just once for the entire CDATA section. Is there an easy way to get all of the content data in one call?
Thanks!