PDA

View Full Version : XML parsing error: syntax error



worldenglishclub
05-12-2009, 12:18 AM
I am a newbie and have learned a lot in the last few weeks. I just got my site the way I wanted it and was happy about it. So I started to market it this Monday. Then I found out the rss feed wasn't working anymore. :mad: Since I am mainly marketing through twitter and other social avenues, this is very important to me. I am getting this error when I click on my feed links...

XML Parsing Error: syntax error
Location: http://www.worldenglishclub.com/feed
Line Number 1, Column 31:<?xml version="1.0" encoding=""?>
------------------------------^

I managed to find this code in a php and it wasn't exactly how this was so I changed it. But that didn't work. I have learned that I might be missing a ";" or a "{" or a closing element of some sort. But the truth is I didn't change that much and have gone through things line by line with no luck.

I am wondering if someone knows where I should be looking specifically to find if something is wrong.

Alternatively if this doesn't work or no one has any ideas, I am willing to erase everything and start over. But I need a little guidance on that too. So if you have any knowledge in any of these two areas, I would greatly appreciate it.

thank you in advance for any suggestions you may have.

ryan

wysiwyg
05-12-2009, 05:49 AM
Well, it points to the problem and gives you a line and column number.


Line Number 1, Column 31:
<?xml version="1.0" encoding=""?>
------------------------------^

You have an empty encoding value. It should either be omitted entirely or declared (eg. "utf-8").

worldenglishclub
05-12-2009, 06:15 PM
thank you so much wysiwyg. I was going to re-ask my question about that specifically. I figured I was missing something there but thats what I couldn't find. Well.... I did read about utf-8 but i didn't put 2 and 2 together. I will go and read up some more now that I know whats going on with that. Thanks again :)