Results 1 to 4 of 4

Thread: including rss feeds into a page

  1. #1
    Succeded in braking Windo TZ Veteran Dehcbad25's Avatar
    Join Date
    Apr 2002
    Location
    DE - USA
    Posts
    2,366

    including rss feeds into a page

    I need help with this one. I want to include rss feed, for example the MS security bulletins into our intranet. So I want the feed to look like html.
    There are tools out there that can convert rss2html but I was wondering if anyone knew of a php fuction to allow this without scripts from outside

  2. #2
    Bronze Member Coffee's Avatar
    Join Date
    Dec 2003
    Posts
    182

    Question Rss

    There are a lot of help files on rss xml scripting. Look up anything from the following below might help...

    file.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xml-tag>
    <child-xml-tag>
    </child-xml-tag>
    </xml-tag>

    script.js
    xmlDoc = document.implementation.createDocument("", "", null);
    xmlDoc.onload = writeList;
    xmlDoc.load("file.xml");

    function writeList()
    {
    var rss = xmlDoc.getElementsByTagName("xml-tag");
    for (j=0; j < rss[i].childNodes.length; j++) {
    rss[i].childNodes[j].text;
    if (rss[i].childNodes[j].nodeName == "#text") {
    alert(rss[i].childNodes[j].nodeValue);
    }
    }



    Trouble for me is that Im using firefox and none of this seems to work. Well i say none of this but a fair amount. cant get any values from childNode(s) pluss childNode doesn't work itself after trying lots of different code just to get this far !!!!

    Can anyone help us please
    Live long and prosper!

  3. #3
    Bronze Member Coffee's Avatar
    Join Date
    Dec 2003
    Posts
    182

    Question Could do this...

    Depends if your wanting to do what im wanting to do and read xml to html but then again if not you could do this...

    <link rel="alternate" type="application/rss+xml" title="Rss" href="rss.xml">

    Puts the ison for Rss into the seach bar !
    Then just create an xml file with <rss version=""></rss> to go with it.

    The trouble I'm having myself though is that it won't show any of the items once i've added it to the bookmarks. Can anyone help me with formatting my XML file please!?
    Live long and prosper!

  4. #4
    Succeded in braking Windo TZ Veteran Dehcbad25's Avatar
    Join Date
    Apr 2002
    Location
    DE - USA
    Posts
    2,366
    I think we are looking at different points.
    I was looking at putting rss feeds into a web page, and I did accomplish this with a php code. Quite nice actually. Now in our intranet page, we have a centralized site with news from MS bulletings, and other things, and it is updated automatically.
    Now..from what you said, I am guessing that your problem is that you are doing the wrong bookmarking in Firefox. For RSS feeds to work you have to open the Manage bookmarks window, and then File and then New Live bookmark.
    Doing it this way the RSS feed will show in the bookmarks as it should.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •