> -----Original Message-----
> From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
> Sent: 17 October 2002 06:16

[snip]
 
> >>Even if we never change the default,
> >><?php echo "<?xml ......?>";?> works always w/o patch.

[snip]
 
> We may even have XML processor that processes PHP code in XML
> documents in the future. i.e. PHP interpreter is invoked from
> XML processor.

... 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

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to