Question: I'm parsing an RSS feed that has an element `<link>` with a url within it like so, `<link>http://www.google.com/</link>`; however, when I try to get the url using `node.css('link').text` it returns an empty string. Is there another attribute I should be accessing?

I'm using nokogiri/ruby.

Example:

```
doc = Nokogiri::HTML(open('http://www.kffl.com/printRSS.php/NFL-ARI'))
    doc.css('item').each do |item|
    puts item.css('link').text
    puts item.css('link').first.text
end

```

Answer: 
You are parsing as HTML, but the source is XML. In [HTML the `link` element is empty](http://www.w3.org/TR/html401/struct/links.html#h-12.3) so Nokogiri parses is as something like `<link></link>http://example.com ...` where the url is a text node outside the `link` element. When you then query the parsed document the `link` elements are empty.

To fix it you should parse as XML:

```
doc = Nokogiri::XML(open('http://www.kffl.com/printRSS.php/NFL-ARI'))
  # ...

```
Try getting the text of the "first" item returned by that selector:

```
node.css('link').first.text # => "http://www.google.com/" 

```