whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2fab3547be
commit
dc1acc7ead
@ -111,11 +111,11 @@ public class XSSFImportFromXML {
|
|||||||
Node result = (Node) xpath.evaluate(xpathString, doc, XPathConstants.NODE);
|
Node result = (Node) xpath.evaluate(xpathString, doc, XPathConstants.NODE);
|
||||||
// result can be null if value is optional (xsd:minOccurs=0), see bugzilla 55864
|
// result can be null if value is optional (xsd:minOccurs=0), see bugzilla 55864
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
String textContent = result.getTextContent();
|
String textContent = result.getTextContent();
|
||||||
logger.log(POILogger.DEBUG, "Extracting with xpath " + xpathString + " : value is '" + textContent + "'");
|
logger.log(POILogger.DEBUG, "Extracting with xpath " + xpathString + " : value is '" + textContent + "'");
|
||||||
XSSFCell cell = singleXmlCell.getReferencedCell();
|
XSSFCell cell = singleXmlCell.getReferencedCell();
|
||||||
logger.log(POILogger.DEBUG, "Setting '" + textContent + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet "
|
logger.log(POILogger.DEBUG, "Setting '" + textContent + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet "
|
||||||
+ cell.getSheet().getSheetName());
|
+ cell.getSheet().getSheetName());
|
||||||
setCellValue(textContent, cell, xmlDataType);
|
setCellValue(textContent, cell, xmlDataType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user