Add a quick check for a last line of </rss> for the import check. Also fix up error code checking for the xmllint (not sure this is quite right yet).