Welcome to Geeklog, Anonymous Tuesday, December 10 2024 @ 06:01 am EST
Geeklog Forums
Parse error in XML Feed
Status: offline
keystone
Forum User
Chatty
Registered: 09/21/02
Posts: 50
I\'m getting the following error in my portal block.
\"Parse error in http://www.computerworld.com/news/xml/10/0,5009,,00.xml: xml processing instruction not at start of external entity at line 3\"
I\'ve tried other feeds from computerworld but I get similar errors. Is this a problem with the format of the xml file or a true parsing error in GL? Any ideas? Thanks to all the GL developers and contributers.
12
14
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Which version of Geeklog are you running?
That feed is indeed not correct since it should start with the xml declaration as the very first characters. It does, however, have whitespace in front of that, which causes the parse error.
Try running the feed through a validator which will tell you the same thing.
Having said that: Geeklog does include a workaround for invalid feeds like these and removes the whitespace before attempting to parse the feed. And I can indeed read the feed just fine on my local Geeklog install.
I can\'t remember when exactly this workaround was added - it may have been in 1.3.8.
bye, Dirk
15
14
Quote
All times are EST. The time is now 06:01 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content