php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32120 xml feature
Submitted: 2005-02-26 10:57 UTC Modified: 2005-03-06 18:26 UTC
From: johnnygroeneveld at chello dot nl Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Irrelevant OS: n.v.t.
Private report: No CVE-ID: None
 [2005-02-26 10:57 UTC] johnnygroeneveld at chello dot nl
Description:
------------
I was thinking.
when I want to parse PHP i have to use <?...?>
in XML this is reserved.
<?xml version="1.0"?>
would become:
<?
 header('content-type','text/xml');
 print('<?xml version="1.0"?>');
?>
wouldn't it be handy to have the <? to be turned of in let's say .xphp extensions and let php than parse this:
<php:eval>print('hello');</php:eval>
or something like that.
the header could automatically be set to text/xml.
Maybe that there is already something like this what i haven't heard of.
and <php:print>hello{$variable}</php:print> instead of <?=

just think about it.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-05 16:04 UTC] johnnygroeneveld at chello dot nl
found the XsltProcessor->registerPhpFunctions()
which enables me to do this in another way
 [2005-03-06 18:26 UTC] didou@php.net
not a bug ? => Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC