xmlReader.setEntityResolver(this);
xmlReader.parse(new InputSource(new StringReader(XML_CONTENT)));
}
catch (ParserConfigurationException e)
{
throw new DataSetException(e);
}
catch (SAXException e)
{
Exception exception = e.getException() == null ? e : e.getException();
if(exception instanceof DataSetException)
{
throw (DataSetException)exception;
}
else
{
throw new DataSetException(exception);
}
}
catch (IOException e)
{
throw new DataSetException(e);
}
}