[ 
https://issues.apache.org/jira/browse/XMLBEANS-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488903#comment-17488903
 ] 

PJ Fanning commented on XMLBEANS-597:
-------------------------------------

SaxLoader has `public Cur load(Locale l, InputSource is, XmlOptions options)` - 
so if we delayed the creation of the XMLReader so that it was created by this 
load method - then the options values could control the setup of the XMLReader

> Improve support for using XMLBeans on Android
> ---------------------------------------------
>
>                 Key: XMLBEANS-597
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-597
>             Project: XMLBeans
>          Issue Type: New Feature
>    Affects Versions: Version 5.0.3
>            Reporter: Dominik Stadler
>            Assignee: Dominik Stadler
>            Priority: Major
>             Fix For: Version 5.1.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The project [https://github.com/centic9/poi-on-android] allows to run Apache 
> POI as part of Android Apps and thus also uses XMLBeans.
> When trying to update to Apache POI 5.2.0, I saw that there is a problem with 
> the SAX parser on Android as it fails when both features "namespaces" and 
> "namespace-prefix" are set to true.
> XMLBeans currently does this in the class {{Locale.SaxLoader}} and thus an 
> Android Application crashes with an error "The 'namespace-prefix' feature is 
> not supported while the 'namespaces' feature is enabled."
>  
> Therefore I  will introduce a system property which can be used to control 
> the SAX feature "namespace-prefixes" to be able to set it to "false" if 
> required.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to