Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



SEO Class in Chicago, IL

Learn How To Optimize Your Website on July 26, 2013


Looking for personalized in-depth SEO training among your peers?



High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!



 


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo

Idiots Guide To Adding Xml/rss Feed To Site


  • Please log in to reply
5 replies to this topic

#1 brickholius

brickholius

    HR 3

  • Active Members
  • PipPipPip
  • 79 posts

Posted 05 November 2004 - 02:57 PM

I have been searching the web trying to figure out how to take XML from a site (could be any site with XML feed) and then publishing it on one of my web sites. Is this complicated or am i missing something? Do i need a parser? I am lost. I understand you can get an aggregator but is that just for viewing it on your desktop....Many of the sites that discuss it in "idiot" language only say how to create a feed from your own site and not how to publish it on your own site. What are the steps. Does anyone here do this?


Thanks,

brickholius

#2 Shane

Shane

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 850 posts
  • Location:Atlanta, GA

Posted 05 November 2004 - 03:20 PM

Our sites use ASP. We use the built-in MSXML2.ServerXMLHTTP object to query the resource and get the XML. That returns us a DOM object that we can then use to output the data contained in the XML in the format we want it in.

And I used to be in the same boat you are in. It took me forever to figure out how to do this, and the documentation is obscure to say the least. I worked it out through trial and error, and I can't guarantee that I'm doing it the best way. All I know is that it works biggrin.gif

#3 brickholius

brickholius

    HR 3

  • Active Members
  • PipPipPip
  • 79 posts

Posted 05 November 2004 - 04:30 PM

i have no idea what you said in the first paragraph huh.gif but...i found the zfeeder which is supposed be for just this...but as most scripts it has poor documentation. So im diggin in this trying to get a simple xml doc to be displayed on my site.

brickholius
*still working at it..sweat drips down brow*

#4 train99

train99

    HR 4

  • Active Members
  • PipPipPipPip
  • 156 posts

Posted 05 November 2004 - 04:33 PM

I use RSS to summarize the new articles on my site. While I am not getting a lot of traffic from it yet, it does get me fast indexing from search engines, and immediate off site links to my new pages. I was expecting bigger results, but writing new articles every few days will pay off in the long run anyway.

You need something to parse the XML into HTML. Not very difficult. You want to avoid Javascript and use either PHP or ASP. Here's an article that confusingly explains it:

http://www.sitepoint...rsing-rss-1-0/2

I use a PHP script to parse my RSS feed. The script I use is easy to set up - works as an include file or within a php page. I paid a coder $20.00 to write it for me.

My script does not handle XML named feeds. Must have a .RSS extension. It only has 3 variables you set, feed url, descriptions on or off, and total items.

If you want a copy of the script email me.

the file will need to be renamed as with a PHP extension.

You can see the script working on my news.iwantcollectibles site. (Link in the sig file below.) The main index page is a list of all the items.

Terry

#5 train99

train99

    HR 4

  • Active Members
  • PipPipPipPip
  • 156 posts

Posted 05 November 2004 - 04:42 PM

I saw the ability to add an attachment. I put the file on. You'll need to rename it with a PHP extension.

Line 15 sets the first item.

Line 16 sets the last item.

Line 22 is the url of the feed - must be named .RSS

Lines 97 through 110 control the output display. You can insert HTML here to make lists or other displays.

Terry

Attached Files



#6 anthonyparsons.com

anthonyparsons.com

    33 & Retired ... What to do, What to do?

  • Active Members
  • PipPipPipPipPipPip
  • 653 posts
  • Location:Nth Qld - Australia

Posted 06 November 2004 - 07:07 AM

There is a very easy method to this. I have attached an RSS Parser zip file. Download it, read the instructions, upload it to your server, ensure the relevant details are entered where applicable, and you can then use the script instructions to insert your own RSS feed into any webpage. Very simple, very easy.

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users