Convert RSS Feed URL into an XML File

Posted on 2007-09-28
Last Modified: 2013-11-18
I have a url of an RSS Feed and would like to get it on my computer in the format of an XML file.  How do you go about doing this?

Question by:Robb Hill
    LVL 12

    Accepted Solution

    Just do a simple HTTPRequest on the site using the URL provided:
    eg, see here for a short code sample and explanation.
    LVL 8

    Expert Comment

    just open the file in web browser and click File > Save As in the IE or whatever browser you use...
    LVL 11

    Author Comment

    by:Robb Hill
       Private Sub GetWNBC_SportsData(ByVal stateInfo As Object)

            'Variables for working with exisitng RSS feed's XML data
            Dim xmldoc As New Xml.XmlDocument
            Dim xmlnlist As Xml.XmlNodeList
            Dim xmln As Xml.XmlNode
            Dim config As System.Configuration.ConfigurationSettings

            'The following variables are used for creating the new xml file
            Dim xmlRevDoc As New Xml.XmlDocument
            ' Create the root element
            Dim rootNode As XmlElement = xmlRevDoc.CreateElement("WNBC_Sports")

                xmlnlist = xmldoc.SelectNodes("//item/description")
                Dim category As String = "WNBC_Sports"
                For Each xmln In xmlnlist
                    'Get node information used for new xml file
                    Dim description As String = xmln.InnerText
                    ' Create the required nodes
                    Dim mainNode As XmlElement = xmlRevDoc.CreateElement("Description")
                    'retrieve the text
                    Dim txtDescription As XmlText = xmlRevDoc.CreateTextNode(description)
                    'append the nodes to the parent node without the value
                    ' save the value of the field into the node

                WriteXML(category, xmlRevDoc.OuterXml.ToString)
            Catch ex As Exception
            End Try

        End Sub

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Fetch XML Unions? 3 252
    selectSingleNode in Access 2013 11 37
    Problem to run file 9 78
    XML Paring  Error - Premature end of file. 7 36
    Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
    Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now