xml feed issue

  • Thread starter xsivforce
  • https://www.osnn.net/admin.php?templates/thread_view.1970/delete&_xfRedirect=https%3A%2F%2Fwww.osnn.net%2Fadmin.php%3Ftemplates%2Foutdated Start date

xsivforce

Prodigal Son
Joined
11 Feb 2002
Messages
8,547
There is a small issue with the xml news feed. The first article in the feed also contains the site url.

For instance, instead of "Whizlabs Launches MCP Exam Simulator" it shows "OSNNWhizlabs Launches MCP Exam Simulator" with a url of "http://www.osnn.nethttp//www.osnn.net/comments.php?shownews=10384" instead of "http//www.osnn.net/comments.php?shownews=10384"
 

gonaads

Beware the G-Man
Political Access
Joined
31 Mar 2002
Messages
18,474
Ewww, wierd, odd, etc... :D

I just posted that news bit.
 

gonaads

Beware the G-Man
Political Access
Joined
31 Mar 2002
Messages
18,474
And of corse ya click the link and ya get yer typical "page load error". :(
 

xsivforce

Prodigal Son
Joined
11 Feb 2002
Messages
8,547
Ahhh. Yeah, that is taken straight from the feed. Just a small issue.
 

Electronic Punk

willalwaysbewithyou
Staff member
Political Access
Joined
2 Dec 2001
Messages
18,683
Code:
- <channel>
  <title>OSNN</title> 
  <link>http://www.osnn.net</link> 
  <description>OSNN Backend</description> 
  </channel>
- <image>
  <title>OSNN</title> 
  <link>http://www.osnn.net</link> 
  </image>

I guess your code is not parsing that part quite right?
I think I need to tidy that part up a little, will do it when I get home.
 

Electronic Punk

willalwaysbewithyou
Staff member
Political Access
Joined
2 Dec 2001
Messages
18,683
ok I have removed the <image bits, let me know if that sorts it.
 

Electronic Punk

willalwaysbewithyou
Staff member
Political Access
Joined
2 Dec 2001
Messages
18,683
excellent, dunno what that bit of code did anyway, so deleting it was even more satisfying.

Don't try that at home kids!
 

xsivforce

Prodigal Son
Joined
11 Feb 2002
Messages
8,547
Not sure as you and I use the same software for our xml feed. I am using an image in mine. Odd *shrugs* Well, it works fine now so it's all good. :cool:
 

Electronic Punk

willalwaysbewithyou
Staff member
Political Access
Joined
2 Dec 2001
Messages
18,683
Well mine is fairly funked, and there are still a few glitches, I will get em sorted eventually. It doesn't like some characters and it can knock it all over... tho some pages can still parse it correctly.
 

xsivforce

Prodigal Son
Joined
11 Feb 2002
Messages
8,547
Electronic Punk said:
It doesn't like some characters and it can knock it all over... tho some pages can still parse it correctly.
Yeah, I've run into that as well. " ' and & are among them...
 

Members online

No members online now.

Latest forum posts

Latest profile posts

Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,000
Messages
673,429
Members
5,596
Latest member
Joshua Liansky