Hi! that is caused because you have <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom">
in a php file. php parser would believe that is actually <?php xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> try escaping first line as following <?php echo '<\?xml version="1.0" encoding="utf-8" \?>'; echo '<feed xmlns="http://www.w3.org/2005/Atom">' // your other code ?> the simple version would be to use sfFeedPlugin or so Alecs On Fri, May 15, 2009 at 11:14 PM, xhe <hexuf...@gmail.com> wrote: > > I want to create an atom feed, the first two lines are > > <?xml version="1.0" encoding="utf-8"?> > <feed xmlns="http://www.w3.org/2005/Atom"> > > > But whenever I browse it, I always got this error > > Parse error: syntax error, unexpected T_STRING in xxxx > > But if I removed the first line, it works fine. > > So for RSS feed, is the first line really mandatory? Why php always > point it as error? > > Thanks > > > -- I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---