[PHP] xml declaration

2002-09-13 Thread Brian V Bonini

Is this the appropriate way to handle this?

?php
echo '?xml version=1.0 encoding=UTF-8?' . \n;
?

What's everyone else do? I'm not missing something here am I?? :)

-B

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




RE: [PHP] xml declaration

2002-09-13 Thread Jay Blanchard

[snip]
Is this the appropriate way to handle this?

?php
echo '?xml version=1.0 encoding=UTF-8?' . \n;
?

What's everyone else do? I'm not missing something here am I?? :)
[/snip]

You can also place the XML declaration outside of the php tags. I have been
able to get proper validation both ways.

HTH!

Jay



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




RE: [PHP] xml declaration

2002-09-13 Thread Brian V Bonini

When I do that PHP complains about the ?xml ..

 -Original Message-
 From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 13, 2002 9:28 AM
 To: 'Brian V Bonini'; 'PHP Lists'
 Subject: RE: [PHP] xml declaration
 
 
 [snip]
 Is this the appropriate way to handle this?
 
 ?php
 echo '?xml version=1.0 encoding=UTF-8?' . \n;
 ?
 
 What's everyone else do? I'm not missing something here am I?? :)
 [/snip]
 
 You can also place the XML declaration outside of the php tags. I 
 have been
 able to get proper validation both ways.
 
 HTH!
 
 Jay
 
 
 
 -- 
 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




RE: [PHP] xml declaration

2002-09-13 Thread Jay Blanchard

[snip]
When I do that PHP complains about the ?xml ..

 ?php
 echo '?xml version=1.0 encoding=UTF-8?' . \n;
 ?
 
 What's everyone else do? I'm not missing something here am I?? :)
[/snip]

Try

?php
print(?xml version=\1.0\ encoding=\UTF-8\?\n);
?

I just copied this from a page that I have that validates properly
HTH!

Jay


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