module Hpricot::Doc::Trav

def title

- ... in RSS
- ... in HTML

+title+ searchs following information.

It returns nil if not found.
+title+ searches title and return it as a text.
def title
  e = find_element('title',
    '{http://www.w3.org/1999/xhtml}title',
    '{http://purl.org/rss/1.0/}title',
    '{http://my.netscape.com/rdf/simple/0.9/}title')
  e && e.extract_text
end