Use standard Python dictionary functions such as has_key to test whether an element exists.
![link to this example [link]](images/permalink.gif)
Example: Testing if elements are present
>>> import feedparser >>> d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml') >>> d.feed.has_key('title') True >>> d.feed.has_key('ttl') False >>> d.feed.get('title', 'No title') u'Sample feed' >>> d.feed.get('ttl', 60) 60