<?php
$XML = "<\?xml version='1.0'
encoding='UTF-8'\?><Product>Apple</Product>";
echo $XML;
?>

Try this?

Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105


-----Original Message-----
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 01, 2002 12:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with "<?xml ....>" inside the PHP code, due to
"?"


Anyone know the workaround with the situation here?  Here is the sample
script.  The problem is I include the XML tag into the PHP variable and
it messed up everything.  It all had to do with "?" here since PHP use
it also.

--clip--
<?php
$XML = "<?xml version='1.0' encoding='UTF-8'?><Product>Apple</Product>";
echo $XML;
?>

Thanks,
 FletchSOD



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to