tags:

views:

37

answers:

2

I'm using YQL to parse some web feeds, this one in particular.

SELECT * FROM rss WHERE url='http://www.arena.net/blog/feed'

This query returns a bunch of fields, one of which looks like

content:encoded

How can I select that field to filter? I want to do something like this,

SELECT title, link, pubDate, content:encoded FROM rss WHERE url='http://www.arena.net/blog/feed'

but that is invalid. I've tried escaping with a slash without any luck.

A: 

Put the field name in back-quotes, of all things:

SELECT title, link, pubDate, `content:encoded` FROM rss
 WHERE url='http://www.arena.net/blog/feed'

Should work

Malvolio
+2  A: 
SELECT title, link, pubDate, encoded
FROM rss
WHERE url='http://www.arena.net/blog/feed' 

Here's a console link.

salathe
Perfect, thanks. So is the first part ("content") just a namespace which is why it can be left off? The intricacies of XML are totally lost on me!
Tivac
Yes, the `content` is a namespace.
salathe