syntax error, unexpected 'version' [message #75890] |
Mon, 14 July 2008 14:51  |
Eclipse User |
|
|
|
Hi,
I've inherited some php files and among them is a PHP-generated xml file
with the following format:
<?xml version="1.0"?>
<?php
echo "
--- the xml syntax here ---
";
?>
and PDT is flagging the word 'version' with the message - syntax error,
unexpected 'version' ... how can I dispose of this syntax error?
Thanks
Richard
|
|
|
|
Re: syntax error, unexpected 'version' [message #75922 is a reply to message #75908] |
Mon, 14 July 2008 16:37  |
Eclipse User |
|
|
|
Thanks... a little common sense goes a long way!
Nick Boldt wrote:
> Delete the first line. Or, if the contents in the echo "..." are just
> XML w/o any PHP variables.. then just remove the first three lines (up
> to echo ") and the last two ("; ?>), since there's no reason that this
> file needs to be .php if it's in fact just .xml.
>
> Nick
>
> Richard Geddes wrote:
>> Hi,
>>
>> I've inherited some php files and among them is a PHP-generated xml
>> file with the following format:
>>
>> <?xml version="1.0"?>
>> <?php
>> echo "
>>
>> --- the xml syntax here ---
>>
>> ";
>> ?>
>>
>> and PDT is flagging the word 'version' with the message - syntax
>> error, unexpected 'version' ... how can I dispose of this syntax error?
>>
>> Thanks
>> Richard
>
|
|
|
Powered by
FUDForum. Page generated in 0.02536 seconds