|
Posted by Satya on 02/10/07 06:00
On Feb 9, 8:56 am, "caine" <thensiuj...@gmail.com> wrote:
> > echo "<?xmlversion=\"1.0\" standalone=\"yes\"?>";
>
> > Or
>
> > echo '<?xmlversion="1.0" standalone="yes"?>'
>
> Not working again. Got the error statement like this:
>
> XML Parsing Error: xml declaration not at start of external entity
> Location:http://localhost/phprss.php
> Line Number 7, Column 1: <?xml version="1.0" standalone="yes"?>
> ^
-------------------
I will suggest these changes in your script:
First of all you will change <xml ... > to <?xml ... >.
Second may be short tag will create problem.
So for above line do something like this: echo '<?xml ....>';
and you are using header() below lot of html. Use header at top or use
ob_start(); at top.
I think you do not need <html>, <head>, <title>, <body>, etc. all
above header() line. So remove all these from bottom of the file.
Navigation:
[Reply to this message]
|