I'm currently trying to write some code to parse an RSS news feed, using the standard XML Parser functions (the site I am working on must run on a PHP4 server, hence no SimpleXML, unfortunately).
I have got the parser and all its handlers essentially working. However, I have found that when the contents of a tag are passed to the character data handler, if there is an apostrophe then the contents will be split up, resulting in multiple calls to the handler. For example:
Code: Select all
<title>House plans 'will hit green belt'</title>Code: Select all
[0] => House plans
[1] => '
[2] => will hit green belt
[3] => '