Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Need an explanation rss xml

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Bravery - 02 Mar 2008 17:47 GMT
HI all,

I am reading an rss feed using  linq.
When I save the xml to a file on disk I get:
(A),
but when I view therss feed in explorer and view source I get
(B).
THe <cfi: ...> tags are missing
Now I am a novice when it comes to theses things. Could someone explain the
difference

Thanks

Robert

(A)
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
   <title>The PowerAlert South Africa Feed</title>
   <link>http://www.poweralert.co.za</link>
   <description>Power Alert South Africa RSS Feed</description>
   <language>en-us</language>
   <item>
     <title>National PowerAlert State Green Up @ 19:40, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
     <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=1</link>
     <description type="text/plain">Green Up - No load shedding
currently.</description>
   </item>
   <item>
     <title>Western Cape PowerAlert State Green Up @ 19:40, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
     <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=2</link>
     <description type="text/plain">Green Up - No load shedding
currently.</description>
   </item>
   <item>
     <title>Eastern Cape PowerAlert State Green Up @ 19:40, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
     <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=3</link>
     <description type="text/plain">Green Up - No load shedding
currently.</description>
   </item>
   <item>
     <title>Kwazulu-Natal PowerAlert State Green Up @ 19:40, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
     <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=4</link>
     <description type="text/plain">Green Up - No load shedding
currently.</description>
   </item>
   <item>
     <title>PowerAlert South Africa National State Advisory</title>
     <link>http://www.poweralert.co.za</link>
     <description type="text/plain">There is enough electricity available
at the moment. Please switch off non-essential appliances and
lights.</description>
   </item>
   <item>
     <title>PowerAlert South Africa National Load Shedding Advisory</title>
     <link>http://www.poweralert.co.za/poweralert3</link>
     <description type="text/plain">NO possibility exists that load
shedding may occur nationally within the next 24 hours. Visit
http://www.poweralert.co.za/poweralert3</description>
   </item>
 </channel>
</rss>

(B)
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">
<channel
xmlns:cfi="http://www.microsoft.com/schemas/rss/core/2005/internal"
cfi:lastdownloaderror="None">
 <title cf:type="text">The PowerAlert South Africa Feed</title>
 <link>http://www.poweralert.co.za/</link>
 <description cf:type="text">Power Alert South Africa RSS
Feed</description>
 <language>en-us</language>
 <item>
  <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="text">National PowerAlert State Green Up @ 19:20, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
  <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=1</link>
  <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="html">Green Up - No load shedding currently.</description>
  <cfi:id>5</cfi:id>
  <cfi:read>true</cfi:read>
  <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>
  <cfi:lastdownloadtime>2008-03-02T17:24:55.453Z</cfi:lastdownloadtime>
 </item>
 <item>
  <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="text">Western Cape PowerAlert State Green Up @ 19:20, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
  <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=2</link>
  <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="html">Green Up - No load shedding currently.</description>
  <cfi:id>4</cfi:id>
  <cfi:read>true</cfi:read>
  <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>
  <cfi:lastdownloadtime>2008-03-02T17:24:55.453Z</cfi:lastdownloadtime>
 </item>
 <item>
  <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="text">Eastern Cape PowerAlert State Green Up @ 19:20, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
  <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=3</link>
  <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="html">Green Up - No load shedding currently.</description>
  <cfi:id>3</cfi:id>
  <cfi:read>true</cfi:read>
  <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>
  <cfi:lastdownloadtime>2008-03-02T17:24:55.453Z</cfi:lastdownloadtime>
 </item>
 <item>
  <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="text">Kwazulu-Natal PowerAlert State Green Up @ 19:20, 2 March 2008
(local - GMT+2) - No load shedding currently.</title>
  <link>http://www.poweralert.co.za/poweralert3/slider.php?region_id=4</link>
  <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="html">Green Up - No load shedding currently.</description>
  <cfi:id>2</cfi:id>
  <cfi:read>true</cfi:read>
  <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>
  <cfi:lastdownloadtime>2008-03-02T17:24:55.453Z</cfi:lastdownloadtime>
 </item>
 <item>
  <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="text">PowerAlert South Africa National State Advisory</title>
  <link>http://www.poweralert.co.za/</link>
  <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="html">There is enough electricity available at the moment. Please
switch off non-essential appliances and lights.</description>
  <cfi:id>1</cfi:id>
  <cfi:read>true</cfi:read>
  <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>
  <cfi:lastdownloadtime>2008-03-02T17:24:55.453Z</cfi:lastdownloadtime>
 </item>
 <item>
  <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="text">PowerAlert South Africa National Load Shedding
Advisory</title>
  <link>http://www.poweralert.co.za/poweralert3</link>
  <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
cf:type="html">NO possibility exists that load shedding may occur nationally
within the next 24 hours. Visit
http://www.poweralert.co.za/poweralert3</description>
  <cfi:id>0</cfi:id>
  <cfi:read>true</cfi:read>
  <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>
  <cfi:lastdownloadtime>2008-02-28T07:54:09.055Z</cfi:lastdownloadtime>
 </item>
</channel>
</rss>
Martin Honnen - 02 Mar 2008 18:18 GMT
> I am reading an rss feed using  linq.
> When I save the xml to a file on disk I get:
[quoted text clipped - 4 lines]
> Now I am a novice when it comes to theses things. Could someone explain
> the difference

How exactly do you save the feed? With an application like IE? Or with
C# code? How does that code look?

Is the URL of the feed
<URL:http://poweralert.co.za/poweralert3/rss.xml>? I have looked at that
feed with Firefox 2.0 and IE 6 and view source does not show any
cfi:elements. Maybe the cfi:elements are added by a feed reader.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

Robert Bravery - 02 Mar 2008 18:53 GMT
Hi Martin,

I use:
rssFeed.Save(string.Format("{0}/rssSave.xml",
"D:/DataStore_WebSites/WowDev470" + TemplateSourceDirectory));

Robert

>> I am reading an rss feed using  linq.
>> When I save the xml to a file on disk I get:
[quoted text clipped - 12 lines]
> not show any cfi:elements. Maybe the cfi:elements are added by a feed
> reader.
Martin Honnen - 02 Mar 2008 18:32 GMT
> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
> xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">
[quoted text clipped - 18 lines]
>  
> <cfi:downloadurl>http://poweralert.co.za/poweralert3/rss.xml</cfi:downloadurl>

I think the cf and cfi elements and attributes are part of Internet
Explorer 7's RSS feed handling.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

Robert Bravery - 02 Mar 2008 18:54 GMT
Hi,

Ok that seems to make sense as to why I cant see that in my app.

Robert

>> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
>> xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">
[quoted text clipped - 21 lines]
> I think the cf and cfi elements and attributes are part of Internet
> Explorer 7's RSS feed handling.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.