return;
}
try
{
// Parse the document. This will cause various things to occur, within the instantiated XMLContext class.
XMLStream x = new XMLStream();
OuterContextClass c = new OuterContextClass(x,documentIdentifier,activities,filter);
x.setContext(c);
try
{
try
{
x.parse(is);
}
catch (ManifoldCFException e)
{
// Ignore XML parsing errors.
if (e.getMessage().indexOf("pars") >= 0)
{
if (Logging.connectors.isDebugEnabled())
Logging.connectors.debug("RSS: XML document '"+documentIdentifier+"' was unparseable ("+e.getMessage()+"), skipping");
c.setDefaultRescanTimeIfNeeded();
return;
}
throw e;
}
c.checkIfValidFeed();
c.setDefaultRescanTimeIfNeeded();
}
finally
{
x.cleanup();
}
}
finally
{
is.close();