coolblue2000
asked on
RDF and Xpath
Can anyone tell me how to get the title node of the channel of this rdf feed using xpath? (I have tried and tried and tried but the node keeps on getting returned as null!) I am using c# and .net 2.0 but if the answer is in vb.net then that is also fine.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://education.guardian.co.uk/0,,472384,00.html?gusrc=rss">
<title>Education Guardian</title>
<link>http://education.guardian.co.uk/0,,472384,00.html?gusrc=rss</link>
<description>The latest Education news from Guardian Unlimited.</description>
<dc:publisher>Guardian Unlimited</dc:publisher>
<dc:rights>Copyright © Guardian Unlimited</dc:rights>
<dc:date>2006-05-25T09:40+ 00:00</dc: date>
<image rdf:resource="http://image.guardian.co.uk/sitecrumbs/Guardian.gif" />
<items>
<rdf:Seq>
<rdf:li resource="http://education.guardian.co.uk/policy/story/0,,1782657,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/admissions/story/0,,1781877,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/pupilbehaviour/story/0,,1781055,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/news/story/0,,1782731,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/specialreports/lecturerspay/story/0,,1782020,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/news/story/0,,1782618,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/worldwide/story/0,,1781991,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/columnist/story/0,,1781413,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/schools/columnist/story/0,,1780584,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/comment/story/0,,1780663,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/universityguide2006/story/0,,1765251,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/further/story/0,,1780643,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/mba/story/0,,1779161,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/students/housing/story/0,,1781233,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/students/news/story/0,,1781332,00.html?gusrc=rss" />
</rdf:Seq>
</items>
</channel>
<image rdf:about="http://image.guardian.co.uk/sitecrumbs/Guardian.gif">
<title>Education Guardian</title>
<url>http://image.guardian.co.uk/sitecrumbs/Guardian.gif</url>
<link>http://education.guardian.co.uk/0,,472384,00.html?gusrc=rss</link>
</image>
<item rdf:about="http://education.guardian.co.uk/policy/story/0,,1782657,00.html?gusrc=rss">
<title>Reforms must continue, Johnson insists</title>
<link>http://education.guardian.co.uk/policy/story/0,,1782657,00.html?gusrc=rss</link>
<description>Education secretary to warn that Labour must push ahead with public service reform despite damaging revolt over schools bill.</description>
<dc:date>2006-05-25T10:25+ 00:00</dc: date>
</item>
<item rdf:about="http://education.guardian.co.uk/admissions/story/0,,1781877,00.html?gusrc=rss">
<title>Tories back calls to open up independent schools</title>
<link>http://education.guardian.co.uk/admissions/story/0,,1781877,00.html?gusrc=rss</link>
<description>The Conservatives have backed fresh calls to open up independent schools to all bright children.</description>
<dc:date>2006-05-24T10:14+ 00:00</dc: date>
</item>
</rdf:RDF>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://education.guardian.co.uk/0,,472384,00.html?gusrc=rss">
<title>Education Guardian</title>
<link>http://education.guardian.co.uk/0,,472384,00.html?gusrc=rss</link>
<description>The latest Education news from Guardian Unlimited.</description>
<dc:publisher>Guardian Unlimited</dc:publisher>
<dc:rights>Copyright © Guardian Unlimited</dc:rights>
<dc:date>2006-05-25T09:40+
<image rdf:resource="http://image.guardian.co.uk/sitecrumbs/Guardian.gif" />
<items>
<rdf:Seq>
<rdf:li resource="http://education.guardian.co.uk/policy/story/0,,1782657,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/admissions/story/0,,1781877,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/pupilbehaviour/story/0,,1781055,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/news/story/0,,1782731,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/specialreports/lecturerspay/story/0,,1782020,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/news/story/0,,1782618,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/worldwide/story/0,,1781991,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/columnist/story/0,,1781413,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/schools/columnist/story/0,,1780584,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/higher/comment/story/0,,1780663,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/universityguide2006/story/0,,1765251,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/further/story/0,,1780643,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/mba/story/0,,1779161,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/students/housing/story/0,,1781233,00.html?gusrc=rss" />
<rdf:li resource="http://education.guardian.co.uk/students/news/story/0,,1781332,00.html?gusrc=rss" />
</rdf:Seq>
</items>
</channel>
<image rdf:about="http://image.guardian.co.uk/sitecrumbs/Guardian.gif">
<title>Education Guardian</title>
<url>http://image.guardian.co.uk/sitecrumbs/Guardian.gif</url>
<link>http://education.guardian.co.uk/0,,472384,00.html?gusrc=rss</link>
</image>
<item rdf:about="http://education.guardian.co.uk/policy/story/0,,1782657,00.html?gusrc=rss">
<title>Reforms must continue, Johnson insists</title>
<link>http://education.guardian.co.uk/policy/story/0,,1782657,00.html?gusrc=rss</link>
<description>Education secretary to warn that Labour must push ahead with public service reform despite damaging revolt over schools bill.</description>
<dc:date>2006-05-25T10:25+
</item>
<item rdf:about="http://education.guardian.co.uk/admissions/story/0,,1781877,00.html?gusrc=rss">
<title>Tories back calls to open up independent schools</title>
<link>http://education.guardian.co.uk/admissions/story/0,,1781877,00.html?gusrc=rss</link>
<description>The Conservatives have backed fresh calls to open up independent schools to all bright children.</description>
<dc:date>2006-05-24T10:14+
</item>
</rdf:RDF>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.