note 98426 rejected from function.xml-set-processing-instruction-handler by danbrown
| From: | danbrown@php.net | Date: | Tue, 15 Jun 2010 12:50:30 +0000 |
| Subject: | note 98426 rejected from function.xml-set-processing-instruction-handler by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170135@lists.php.net to get a copy of this message | ||
Note Submitter: darkdevine at hotmail dot de
----
I don't see how this one is working how it should be.
Case 1:
Xml:
<?xml version="1.0" encoding="utf-8"?>
[xml...]
Case 2:
Xml:
<?test nocache="false"?>
<?xml version="1.0" encoding="utf-8"?>
[xml...]
Handler:
private function _parseProcessingInstruction( $p, $dest, $data ) {
echo 'Processing Instruction: '.$dest.' - '.$data.' '.__CLASS__;
}
Output Case 1:
None
Output Case 2:
Processing Instruction: jade - nocache="false" XmlTest
In case 1, nothing will be parsed, in case 2 the parser stops after the first processing
instruction.
Did I get something wrong?