Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8179427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:59:49+00:00 2026-06-06T23:59:49+00:00

I have an iphone app which parses standard rss feeds and displays it on

  • 0

I have an iphone app which parses standard rss feeds and displays it on a table.
However I have been given a feed from a client but the parser in the app cannot pickup the nodes and parse the data as it is not a standard rss feed.

The layout they have given me is the following:

    <rss version="0.92">
        <channel>
        <title>Feed</title>
        <link>http://google.com</link>
        <description>
        Description here
        </description>
        <lastBuildDate>30 June +0100</lastBuildDate>
        <language>en</language>
            <event>
                <eventID>123</eventID>
                <name>Name here</name>
                <date>2012-06-29</date>
                <time>21:00</time>
                <category>Arts</category>
                <info>
                 Info here
                </info>
            </event>
            <event>
                <eventID>223</eventID>
                <name>Name here</name>
                <date>2012-06-30</date>
                <time>22:00</time>
                <category>Dance</category>
                <info>
                 Info here
                </info>
            </event>
    </channel>
</rss>

Is there any way to restructure this xml file to a standard rss feed layout using XSLT or a PHP script?
A standard rss feed layout being the following:

<rss>
     <channel>
     <item>
        <title>
            <![CDATA[ Title here ]]>
        </title>
        <link>
            http://www.theatre.com/
        </link>
        <guid>
        http://www.theatre.com
        </guid>
        <description> 
         <p> Description </p>

        </description>
        <dc:subject>
        <![CDATA[ ]]>
        </dc:subject>
        <dc:date>2013-02-01T18:00:04+00:00</dc:date>
      </item>
     </channel>
</rss>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:59:50+00:00Added an answer on June 6, 2026 at 11:59 pm

    It’s not clear what you want, so this style-sheet is just indicative of what you might need.

    This XSLT 1.0 style-sheet ….

    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes"/>
    
      <xsl:template match="/">
     <rss>
      <channel>
        <xsl:apply-templates select="rss/channel/event" /> 
      </channel>
     </rss>
    </xsl:template>
    
    <xsl:template match="event" >
     <item>
      <title><xsl:value-of select="../title" /></title>
      <link><xsl:value-of select="../link" /></link>
      <guid>http://www.theatre.com</guid>
      <description><xsl:value-of select="../description" /></description>
      <subject><xsl:value-of select="category" /></subject>
      <date><xsl:value-of select="date" />T<xsl:value-of select="time" />+00:00</date>
     </item>
    </xsl:template>      
    
    </xsl:stylesheet>
    

    … when applied to your supplied sample input will produce this document …*

    <?xml version="1.0" encoding="utf-8"?>
    <rss>
      <channel>
        <item>
          <title>Feed</title>
          <link>http://google.com</link>
          <guid>http://www.theatre.com</guid>
          <description>
            Description here
            </description>
          <subject>Arts</subject>
          <date>2012-06-29T21:00+00:00</date>
        </item>
        <item>
          <title>Feed</title>
          <link>http://google.com</link>
          <guid>http://www.theatre.com</guid>
          <description>
            Description here
            </description>
          <subject>Dance</subject>
          <date>2012-06-30T22:00+00:00</date>
        </item>
      </channel>
    </rss>    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone app which has a Table View-based data input screen with
I have an iPhone app which gets a response from a php file. This
I am developing an iphone app in which I am extracting RSS feeds and
I have to convert an iPhone app which is published at the AppStore. However,
My company would dearly like to have an iPhone app which, among other functions,
Please give me some tips for this case. I have an iPhone APP which
I have an iPhone/iPad app which play a HTTP Live Stream of a tv
I have made an iPhone App which has a loginwithFacebook button , the login
I have an app which existed as an iPhone app first and now as
I have a basic iPhone/iPad app which has a ; a. List view &

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.