spits back out a complex data structure. One of the things I'm grappling
with is the use of optional RSS elements and how to best code the parser to
handle those. For example, I stumbled on the Slickdeals RSS feed
(http://www.slickdeals.net/rss.php) which doesn't bother putting
descriptions in the items.
Now, I know I can use structkeyfind against the XML object or isDefined and
just rely on a bunch of if statements ("If the description is there, then
grab it"), but this seems inefficient.
Is there a better way to deal with XML elements/attributes that may or may
not be there?
-Rich
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

