Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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.

Jasper
Received on Friday, 24 June 2005 10:50:06 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.