You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2022/02/08 13:23:47 UTC
svn commit: r1897870 - /xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/store/Locale.java
Author: centic
Date: Tue Feb 8 13:23:47 2022
New Revision: 1897870
URL: http://svn.apache.org/viewvc?rev=1897870&view=rev
Log:
When using Apache POI on Android, there is an error when enabling both namespace and namespace-prefixes, so let's handle this gracefully like declaration-handler
Modified:
xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/store/Locale.java
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/store/Locale.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/store/Locale.java?rev=1897870&r1=1897869&r2=1897870&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/store/Locale.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/store/Locale.java Tue Feb 8 13:23:47 2022
@@ -2495,6 +2495,10 @@ public final class Locale
_xr.setFeature(
"http://xml.org/sax/features/namespace-prefixes", true);
_xr.setFeature("http://xml.org/sax/features/namespaces", true);
+ } catch (Throwable e) {
+ LOG.atWarn().withThrowable(e).log("SAX Namespoace handling is not supported");
+ }
+ try {
_xr.setFeature("http://xml.org/sax/features/validation", false);
_xr.setProperty(
"http://xml.org/sax/properties/lexical-handler", this);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org