use of org.apache.poi.xssf.usermodel.XSSFMap in project poi by apache.
the class TestXSSFImportFromXML method testSingleAttributeCellWithNamespace.
@Test
public void testSingleAttributeCellWithNamespace() throws IOException, XPathExpressionException, SAXException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("CustomXMLMapping-singleattributenamespace.xlsx");
try {
int id = 1;
String displayName = "dispName";
String ref = "19";
int count = 21;
String testXML = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>" + "<ns1:table xmlns:ns1=\"" + NS_SPREADSHEETML + "\" id=\"" + id + "\" displayName=\"" + displayName + "\" ref=\"" + ref + "\">" + "<ns1:tableColumns count=\"" + count + "\" />" + "</ns1:table>