DateTime dt = getPublishedElement();
return (dt != null) ? dt.getDate() : null;
}
public DateTime getPublishedElement() {
DateTime dt = getExtension(RssConstants.QNAME_PUBDATE);
if (dt == null) dt = getExtension(RssConstants.QNAME_PUBDATE2);
if (dt == null) dt = getExtension(RssConstants.QNAME_DC_DATE);
return dt;
}