Comments (1)
Hi,
i'm trying to read word document.
i've set this in my activity
static { System.setProperty( "org.apache.poi.javax.xml.stream.XMLInputFactory", "com.fasterxml.aalto.stax.InputFactoryImpl" ); System.setProperty( "org.apache.poi.javax.xml.stream.XMLOutputFactory", "com.fasterxml.aalto.stax.OutputFactoryImpl" ); System.setProperty( "org.apache.poi.javax.xml.stream.XMLEventFactory", "com.fasterxml.aalto.stax.EventFactoryImpl" ); }
In my build.gradle
implementation ("com.github.SUPERCILEX.poi-android:poi:3.17") { exclude group: "org.codehaus.woodstox", module: "stax2-api" } implementation "com.github.SUPERCILEX.poi-android:proguard:3.17"
But when i do this :
FileInputStream fps = new FileInputStream(sFileName); XWPFDocument docu = null; docu = new XWPFDocument(fps);
receieve the following error :
Cannot resolve type for handle _XY_Q=space|R=space@http://www.w3.org/XML/1998/namespace (schemaorg_apache_xmlbeans.system.sF1327CCA741569E70F9CA8C9AF9B44B2.cttext7f5btype) - code 13
I'm missing some configuration in my android project?
Thank you in advance
Solved creating jar with missing schema file
i've putted excluded group in separate jar an added to the build.gradle
'schemaorg_apache_xmlbeans/attribute/**' 'schemaorg_apache_xmlbeans/attributegroup/**' 'schemaorg_apache_xmlbeans/element/**' 'schemaorg_apache_xmlbeans/identityconstraint/**' 'schemaorg_apache_xmlbeans/javaname/**' 'schemaorg_apache_xmlbeans/modelgroup/**' 'schemaorg_apache_xmlbeans/namespace/**' ''schemaorg_apache_xmlbeans/src/**' 'schemaorg_apache_xmlbeans/system/sXML*/**' 'schemaorg_apache_xmlbeans/system/s8C3F193EE11A2F798ACF65489B9E6078/**' 'schemaorg_apache_xmlbeans/type/**'
thank you anyway.
Ciao
Vincenzo
from poi-android.
Related Issues (12)
- open docx HOT 2
- Provider com.bea.xml.stream.EventFactory not found HOT 3
- Provider com.bea.xml.stream.EventFactory not found HOT 3
- UnitTest: Provider for class javax.xml.stream.XMLInputFactory cannot be created
- java below 10
- Problem to write xlsx files. HOT 1
- Can't run demo app
- org.apache.poi.javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found HOT 3
- Apply Color Style Issue HOT 1
- Gradle is failing after adding version 4.0.0
- Unresolved reference: CTPageMar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poi-android.