Package org.apache.poi.xssf.extractor
Class XSSFImportFromXML
- java.lang.Object
-
- org.apache.poi.xssf.extractor.XSSFImportFromXML
-
public class XSSFImportFromXML extends Object
Imports data from an external XML to an XLSX according to one of the mappings defined.The output XML Schema must respect this limitations:- the input XML must be valid according to the XML Schema used in the mapping
- denormalized table mapping is not supported (see OpenOffice part 4: chapter 3.5.1.7)
- all the namespaces used in the document must be declared in the root node
-
-
Constructor Summary
Constructors Constructor Description XSSFImportFromXML(XSSFMap map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidimportFromXML(String xmlInputString)Imports an XML into the XLSX using the Custom XML mapping defined
-
-
-
Constructor Detail
-
XSSFImportFromXML
public XSSFImportFromXML(XSSFMap map)
-
-
Method Detail
-
importFromXML
public void importFromXML(String xmlInputString) throws SAXException, XPathExpressionException, IOException
Imports an XML into the XLSX using the Custom XML mapping defined- Parameters:
xmlInputString- the XML to import- Throws:
SAXException- if error occurs during XML parsingXPathExpressionException- if error occurs during XML navigationIOException- if there are problems reading the input string
-
-