Converts an XML node to an Atom feed.
Converts an XML node to an Atom feed.
If an updated
child is present, but cannot be converted to a date using
dateFormat
, the corresponding Atom-feed parameter becomes None
.
Apart from that, if a child corresponding to an Atom-feed parameter is not
present or empty, the parameter becomes None
. An exception is the
title
parameter which becomes the empty string if not present or empty.
the XML node to be converted
the format to be used on the updated
child
the resulting Atom feed
No check is made if node
is really an Atom feed. Applying to an XML
node other than an Atom feed yields a result like
AtomFeed("", None, None, None, Seq.empty[AtomEntry])
or some other garbage but
throws no exception.