Class XSSFImportFromXML

  • public class XSSFImportFromXML
    extends java.lang.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
    • all the namespaces used in the document must be declared in the root node
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void importFromXML​(java.lang.String xmlInputString)
      Imports an XML into the XLSX using the Custom XML mapping defined
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XSSFImportFromXML

        public XSSFImportFromXML​(XSSFMap map)
    • Method Detail

      • importFromXML

        public void importFromXML​(java.lang.String xmlInputString)
                           throws org.xml.sax.SAXException,
        Imports an XML into the XLSX using the Custom XML mapping defined
        xmlInputString - the XML to import
        org.xml.sax.SAXException - if error occurs during XML parsing
        javax.xml.xpath.XPathExpressionException - if error occurs during XML navigation - if there are problems reading the input string