Ford, Mike [LSS] wrote:
exactly. and this will lead to *strange* bugs. If we're trying to make PHP easier to use for everyone (not just XML parser experts), then we can help the situation greatly by not forcing people to go through this rigmarole. These sort of required hacks are most definately NOT helping to make PHP simpler and easier to use.... in which case your php echo statement above won't parse properly. Since the definition of an XML PI block is effectively: <?tagname "any text except the sequence ?>" ?> -- without any reference to the syntax of what's inside the block -- a true XML parser will think the <?php block ends at the first ?>, the one *inside* *the* *quotes*. A proper XML conformant block would have to do something like: <?php echo "<?xml ......?".">";?> Cheers! Mike
This (see above hacks), compared to a measly 3 extra characters as part of a code port to version 5
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php