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 700537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:30:34+00:00 2026-05-14T03:30:34+00:00

Scenario I am consuming an RSS feed that looks, in part, like this: <item>

  • 0

Scenario

I am consuming an RSS feed that looks, in part, like this:

<item>
    <title>Blog Title Here</title>
    <link>http://blogurl.com/2010/03/23/title/</link>
    <comments>http://blogurl.com/2010/03/23/title/#comments</comments>
    <pubDate>Tue, 23 Mar 2010 10:44:54 +0000</pubDate>
    <dc:creator>AuthorName</dc:creator>
    <category><![CDATA[CategoryName]]></category>
    <guid isPermaLink="false">http://blogurl.com/?p=102</guid>
    <description><![CDATA[Description of post content]]></description>
    <content:encoded><![CDATA[Full blog post here]]></content:encoded>
</item>

I am using Rss20FeedFormatter to get a list of SyndicationItems, like this:

List<SyndicationItem> items;
using (var reader = XmlReader.Create("http://blogurl.com/feed/"))
{
  var formatter = new Rss20FeedFormatter();
  formatter.ReadFrom(reader);
  items = formatter.Feed.Items.ToList();
}

Problem

I have no idea how to access the value dc:creator element. I believe that I need to use ElementExtensions somehow, but I’m not sure of the syntax, and can’t find examples anywhere.

  • 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-05-14T03:30:34+00:00Added an answer on May 14, 2026 at 3:30 am

    Here’s a short F# sample, that hopefully steers you to some useful APIs:

    let xml = @"
    <rss version=""2.0"">
    <channel xmlns:dc=""http://whatever.it.is/"" xmlns:content=""http://that.too/"">
    <title>testing</title>
    <item> 
        <title>Blog Title Here</title> 
        <link>http://blogurl.com/2010/03/23/title/</link> 
        <comments>http://blogurl.com/2010/03/23/title/#comments</comments> 
        <pubDate>Tue, 23 Mar 2010 10:44:54 +0000</pubDate> 
        <dc:creator>AuthorName</dc:creator> 
        <category><![CDATA[CategoryName]]></category> 
        <guid isPermaLink=""false"">http://blogurl.com/?p=102</guid> 
        <description><![CDATA[Description of post content]]></description> 
        <content:encoded><![CDATA[Full blog post here]]></content:encoded> 
    </item> 
    </channel>
    </rss>
    "
    
    open System.Xml 
    open System.IO
    open System.ServiceModel.Syndication
    let ReadIt() =
        use reader = XmlReader.Create(new StringReader(xml))
        let formatter = new Rss20FeedFormatter()
        formatter.ReadFrom(reader)
        let items = formatter.Feed.Items
        for item in items do
            // if I know there are dc:creator elements (that can deserialize with DataContract of type 'string')
            let dcCreators = item.ElementExtensions.ReadElementExtensions<string>("creator","http://whatever.it.is/")
            for dcc in dcCreators do
                printfn "dcc : %s" dcc
            // if just probing around
            for ee in item.ElementExtensions do
                printfn "extension `%s:%s'" ee.OuterNamespace ee.OuterName 
                use eer = ee.GetReader()
                let inner = eer.ReadInnerXml()
                printfn "    %s" inner
    ReadIt()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is in C# I'm consuming data from an RSS feed and want to
I have this scenario where a webservice method I'm consuming in C# returns a
At least, I think that's related to the problem. My scenario is this: I've
Here's the scenario I have an activity(A) which has a button and textview. I
Scenario: over 1.5GB of text and csv files that I need to process mathematically.
How do you manage this simple scenario when you have an object with a
My scenerio is like this: On the server there is an application which exposes
I have an odd scenario (see this answer for more details), where I need
Here is my scenario.....i have a windows service running. It does a 3 step
Scenario : I'll try to put an analogy with the loan broker example from

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.