Re: Re: XML Processing Instruction ( was " <? PHP vs. <?" )
| From: | Jirka Kosek | Date: | Tue, 23 Jan 2001 16:24:19 +0000 |
| Subject: | Re: Re: XML Processing Instruction ( was " <? PHP vs. <?" ) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36207@lists.php.net to get a copy of this message | ||
Teodor Cimpoesu wrote:
> my follow-up was from an suggest of using <% though :)
> it exists in C, ASP and JSP. We have it in PHP, why not use it?
Because it is not compatible with XML syntax. Following is incorrect in
XML, because '<' has very restricted usage:
<tag>
<% echo Date("d.m.Y") %>
</tag>
If you use <?php instead, it is perfect XML and you can use any XML
editor or other tool to work with document:
<tag>
<?php echo Date("d.m.Y") ?>
</tag>
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz