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

  • Home
  • SEARCH
  • 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 32233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:43:48+00:00 2026-05-10T13:43:48+00:00

I’m trying to add support for stackoverflow feeds in my rss reader but SelectNodes

  • 0

I’m trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don’t understand yet.

I have gotten it to work by removing all attributes from the feed tag, but that’s a hack and I would like to do it properly. So, how do you use SelectNodes with atom feeds?

Here’s a snippet of the feed.

<?xml version='1.0' encoding='utf-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:creativeCommons='http://backend.userland.com/creativeCommonsRssModule' xmlns:thr='http://purl.org/syndication/thread/1.0'>  <title type='html'>StackOverflow.com - Questions tagged: c</title> <link rel='self' href='http://stackoverflow.com/feeds/tag/c' type='application/atom+xml' /> <subtitle>Check out the latest from StackOverflow.com</subtitle> <updated>2008-08-24T12:25:30Z</updated> <id>http://stackoverflow.com/feeds/tag/c</id> <creativeCommons:license>http://www.creativecommons.org/licenses/by-nc/2.5/rdf</creativeCommons:license>    <entry>    <id>http://stackoverflow.com/questions/22901/what-is-the-best-way-to-communicate-with-a-sql-server</id>    <title type='html'>What is the best way to communicate with a SQL server?</title>    <category scheme='http://stackoverflow.com/feeds/tag/c/tags' term='c' /><category scheme='http://stackoverflow.com/feeds/tag/c/tags' term='c++' /><category scheme='http://stackoverflow.com/feeds/tag/c/tags' term='sql' /><category scheme='http://stackoverflow.com/feeds/tag/c/tags' term='mysql' /><category scheme='http://stackoverflow.com/feeds/tag/c/tags' term='database' />      <author><name>Ed</name></author>    <link rel='alternate' href='http://stackoverflow.com/questions/22901/what-is-the-best-way-to-communicate-with-a-sql-server' />    <published>2008-08-22T05:09:04Z</published>    <updated>2008-08-23T04:52:39Z</updated>    <summary type='html'>&lt;p&gt;I am going to be using c/c++, and would like to know the best way to talk to a MySQL server.  Should I use the library that comes with the server installation?  Are they any good libraries I should consider other than the official one?&lt;/p&gt;</summary>    <link rel='replies' type='application/atom+xml' href='http://stackoverflow.com/feeds/question/22901/answers' thr:count='2'/>    <thr:total>2</thr:total>  </entry>   </feed> 

The Solution

XmlDocument doc = new XmlDocument(); XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable); nsmgr.AddNamespace('atom', 'http://www.w3.org/2005/Atom'); doc.Load(feed);  // successful XmlNodeList itemList = doc.DocumentElement.SelectNodes('atom:entry', nsmgr); 
  • 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. 2026-05-10T13:43:49+00:00Added an answer on May 10, 2026 at 1:43 pm

    Don’t confuse the namespace names in the XML file with the namespace names for your namespace manager. They’re both shortcuts, and they don’t necessarily have to match.

    So you can register ‘http://www.w3.org/2005/Atom‘ as ‘atom’, and then do a SelectNodes for ‘atom:entry’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 103k
  • Answers 103k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I haven't used it, but IIS has a URL Rewrite… May 11, 2026 at 8:24 pm
  • Editorial Team
    Editorial Team added an answer I just happened to be reading this blog post not… May 11, 2026 at 8:24 pm
  • Editorial Team
    Editorial Team added an answer Judging by the stacktrace you pasted in your post I'd… May 11, 2026 at 8:24 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.