Jump to content

_XMLDOMWrapper help


ning
 Share

Recommended Posts

Hi,

I'm trying to create a mini RSS reader, using the excellent _XMLDOMWrapper code posted here. Looking at this code:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0"><channel>
    <title>BBC News | News Front Page | UK Edition</title>
    <link>http://news.bbc.co.uk/go/rss/-/1/hi/default.stm</link>
    <description>Visit BBC News for up-to-the-minute news, breaking news, video, audio and feature stories. BBC News provides trusted World and UK news as well as local and regional perspectives. Also entertainment, business, science, technology and health news.</description>
    <language>en-gb</language>
    <lastBuildDate>Mon, 16 Oct 2006 13:33:37 GMT</lastBuildDate>
    <copyright>Copyright: (C) British Broadcasting Corporation, see http://news.bbc.co.uk/1/hi/help/rss/4498287.stm for terms and conditions of reuse</copyright>
    <docs>http://www.bbc.co.uk/syndication/</docs>
    <ttl>15</ttl>
...

I can extract the title ('BBC News | News Front Page | UK Edition') using the function _XMLGetField ('/rss/channel/title'). However, I have problems with this code:

<?xml version="1.0" encoding="UTF-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<title>Gmail - Inbox for bjashepherd</title>
<tagline>New messages in your Gmail Inbox</tagline>
<fullcount>8</fullcount>
<link rel="alternate" href="http://mail.google.com/mail" type="text/html"/>
<modified>2006-10-23T06:42:30Z</modified>

I should be able to extract the title ('Gmail - Inbox for bjashepherd') using the function _XMLGetField ('feed/title'). But it doesn't work - it throws an error ("Error Retrieving: feed/title / No matching node(s)found!"). What's the difference?

ben

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...