LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-15-2013, 10:43 AM   #1
mike2010
Member
 
Registered: Jan 2009
Posts: 132

Rep: Reputation: 15
Simple script to display XML feeds on Linux ?


It's amazing all the google queries i've done and can't find even 1 decent free XML feed generator script. I used all the popular keywords as well like "free xml generator" , "free xml creator" .. = All crap or they lead me in 'Download Now' loops where I can never get the download, just another screen. When will Google clean these crap sites up ? I finally found one that seemed decent, but it was one for Windows only. Or another one that said it was for XML, when it was really only for RSS.

But I just need a simple 1 page php script that will display XML feed content (not RSS).

Any help is much appreciated.

Last edited by mike2010; 03-15-2013 at 10:45 AM.
 
Old 03-15-2013, 11:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what does this mean? You might be surprised by google, but i've no idea at all what an "XML Generator" would do outside of a specific this like RSS. XML is nothing but structure, so without having a certain structure and data to put in it, it makes no sense to just make "some" XML.
 
Old 03-15-2013, 08:06 PM   #3
mike2010
Member
 
Registered: Jan 2009
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
what does this mean? You might be surprised by google, but i've no idea at all what an "XML Generator" would do outside of a specific this like RSS. XML is nothing but structure, so without having a certain structure and data to put in it, it makes no sense to just make "some" XML.
kewpie, your right. I was thinking of using XML as SimplePie kind of ...but SimplePie is just for RSS.

Basically I just need an XML script that works on linux. And will pull in the xml feeds that I specify....and output it neatly / formatted with headlines and such into a webpage.

For RSS I use SimplePie and have no problem with it.

For XML, there seems to be no product that is popular / simple / or mainstream .

Any recommendations are appreciated, even if PM'd . I need something that works stand-alone....not with WordPress or anything.

Last edited by mike2010; 03-15-2013 at 08:09 PM.
 
Old 03-16-2013, 02:43 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
but again, you've not explained what this means! You have an RSS one as RSS is a tangible structure OF XML that MEANS something. XML by itself doesn't MEAN anything. You've literally explained nothing about what you want it to achieve. There is no such thing as an "XML feed" XML is NOT a "feed".
 
Old 03-17-2013, 09:38 AM   #5
mike2010
Member
 
Registered: Jan 2009
Posts: 132

Original Poster
Rep: Reputation: 15
dude....seriously?

You know how there are RSS feeds and there are XML feeds correct ?

I'm looking for a program to parse XML feeds on a linux server...so that they can display into normal webpages.

that is all.
 
Old 03-17-2013, 11:47 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
YES SERIOUSLY. You're the one not getting this... Remember how you couldn't find anything to do this? That's becuase "this" is NOT a thing.

There is NO SUCH THING AS AN "XML FEED" The "feed" part is the interpretation of the data that is higher in the stack than XML. XML is just syntax and structure, there is no inherent meaning to any of it. How do you suppose to take some arbitrary XML that could contain ANYTHING and make it into a webpage??? What does that even mean...
 
Old 03-18-2013, 08:27 AM   #7
mike2010
Member
 
Registered: Jan 2009
Posts: 132

Original Poster
Rep: Reputation: 15
Maybe providing an example will be easier :

Here is an XML feed - http://w1.weather.gov/xml/current_obs/index.xml

I'd like to have the following above implemented into a webpage and without all the formatting. I need specific software installed on Linux to do so.

This is startin to feel like i'm on a Punk'd episode...
 
Old 03-18-2013, 09:01 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well if you think I'm playing a joke on you then we're clearly not going to get anywhere.

What you want doesn't make sense, there's far too much missing information. Unless you just want a syntax parsed XML document to be literally displayed, but any browser goes that far when presented within any XML it doesn't have a dtd for. I use XML-Tree on Chrome, maybe that's all you're really talking about? I can change font sizes etc, and save it as a local dtd...?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Requesting help to modify simple XML with SED script -=ALS=- Linux - Newbie 3 03-01-2012 09:20 PM
LXer: How to download RSS feeds with a simple script LXer Syndicated Linux News 0 07-05-2011 12:20 PM
Looking for a Bash / Perl script to read the New RSS feeds (XML url) frenchn00b Programming 1 02-13-2011 08:06 AM
Strange issues with XML / RSS Feeds on Centos 5.5 bzzik Linux - Server 1 11-08-2010 03:22 AM
RSS/XML Live Bookmarks / News Feeds win32sux Programming 3 10-24-2004 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration