};
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(inData, handler);
return new IndexDocument(fileData.path, xmlAsStr,
contentOnly.toString());
} catch (MalformedURLException e) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Error at indexing", e);
} catch (IOException e) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Error at indexing", e);