private Document documentFromContent(InputStream content, String idString) throws ParserConfigurationException, SAXException, IOException { try { return parseXml(contentToString(content, idString), idString); } catch (Exception e) { // Generate an empty document to make the unmarshallers happy. Ultimately the default // unmarshaller will be called to unmarshall into the service base exception. return XpathUtils.documentFrom("<empty/>"); } }
private Document documentFromContent(InputStream content, String idString) throws ParserConfigurationException, SAXException, IOException { try { return parseXml(contentToString(content, idString), idString); } catch (Exception e) { // Generate an empty document to make the unmarshallers happy. Ultimately the default // unmarshaller will be called to unmarshall into the service base exception. return XpathUtils.documentFrom("<empty/>"); } }
private Document documentFromContent(InputStream content, String idString) throws ParserConfigurationException, SAXException, IOException { try { return parseXml(contentToString(content, idString), idString); } catch (Exception e) { // Generate an empty document to make the unmarshallers happy. Ultimately the default // unmarshaller will be called to unmarshall into the service base exception. return XpathUtils.documentFrom("<empty/>"); } }