W3C home > Mailing lists > Public > www-html@w3.org > June 2005

Re: XML tags are just a cheap rip-off of PHP tags

From: Jasper Bryant-Greene <jasper@bryant-greene.name>
Date: Fri, 24 Jun 2005 22:50:52 +1200
Message-ID: <42BBE58C.8050501@bryant-greene.name>
To: Laurens Holst <lholst@students.cs.uu.nl>
CC: www-html@w3.org

Laurens Holst wrote:
> I think it’s perfectly possible to use <?php ?> in a way that is legal
> to XML processors, as long as you don’t use it in attributes and avoid
> writing down the ‘?>’ sequence except when exiting the processing
> instruction (e.g. the echo then has to be echo '?'.'>', or using an
> escape code for the ? or the >). But the PHP parser also accepts it in
> places not legal to XML.

This is because it simply uses <?php ?> as delimiters, it's effectively
"dumb" to the idea of an XML PI, even though it uses a similar syntax
for convenience.

I can't think of a situation when it would matter, anyway, since PHP
would almost always be parsed before any XML processors got the document.

Received on Friday, 24 June 2005 10:50:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:11 UTC