How to read XML (Atom 1.0) correctly? XDocument.Load(rss_url)

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
When I read XML in RSS 1.0 or 2.0 the following line works perfectly:
tmp_str_a = feedXML.Root.<channel>.<title>.Value


<pre><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen /~d/styles/rss2full.xsl"?><br/><br/>...
...<br/>...<br/> <channel>
<title>Here goes the title</title>

<link>http://blogion.ru/aussiebuck</link>
<description>Here goes the description</description><br/>...<br/>...<br/>...[/code]

<br/>
I cannot understand what is wrong with Atom 1.0

<pre><?xml version=1.0 encoding=UTF-8?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<br/><feed xmlns=http://www.w3.org/2005/Atom xmlns:openSearch=http://a9.com/-/spec/opensearchrss/1.0/ xmlns:georss=http://www.georss.org/georss xmlns:thr=http://purl.org/syndication/thread/1.0>
<br/><id>tag:blogger.com,1999:blog-786294045698014194</id>
<updated>2011-11-12T17:16:20.544-08:00</updated>
<title type=text>bfstestblogone - here is the title</title>
<subtitle type=html>Here is a description</subtitle>
[/code]

<br/>
The following line returns a "nothing" value:
tmp_str_a = feedXML.Root.<feed>.<title>.Value

What is missing in my code about Atom? Thanks.
<br/>

View the full article
 
Back
Top