I am trying to use this function xml_set_processing_instruction_handler in order to put php in my XML files. For example, I would like to be able to have this line in my XML file...
<paragraph>Joe went to the store <?php print('<BR>'); ?> and then he hurried off to school.</paragraph>
I use the processing instruction handler to read the php code, but then the character data handler won't finish reading the rest of the sentence "and then he hurried off to school.". It only prints the first part of the sentence to my browser.
Why does it only think the character data in the <paragraph> tags ends when the php starts and is there anything I can do about this???