You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "PJ Fanning (Jira)" <ji...@apache.org> on 2022/02/08 14:40:00 UTC

[jira] [Commented] (XMLBEANS-597) Improve support for using XMLBeans on Android

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

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

[~dominik.stadler@gmx.at] could you use XmlOptions class in XMLBeans? - this is the usual way we configure XMLBeans behaviour. POI even sets a default XmlOptions. I often wish that POI had a similar class - because POI now has so many config settings - all appearing in different classes.

> 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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org