import org.openoffice.odf.OdfPackage;
import org.openoffice.odf.OpenDocumentFactory;
import org.openoffice.odf.spreadsheet.SpreadsheetDocument;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
......
OdfPackage odfPackage;
odfPackage = (SpreadsheetDocument) OpenDocumentFactory.load(path);
Document doc = odfPackage.getDocument(OdfPackage.STREAMNAME_CONTENT);
Element root = doc.getDocumentElement();
......
|