|
Re: syntax error, unexpected 'version' [message #75908 is a reply to message #75890] |
Mon, 14 July 2008 19:16 |
Eclipse User |
|
|
|
Originally posted by: codeslave.ca.ibm.com
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
--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
|
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds