You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/01/17 07:31:23 UTC
[camel] 01/02: CAMEL-14404 - Ignore xsi namespace attributes
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e49d3015f2d3dc17661fe8cb0aa7d30960b0bc0c
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Jan 17 08:30:39 2020 +0100
CAMEL-14404 - Ignore xsi namespace attributes
---
.../src/main/java/org/apache/camel/xml/in/BaseParser.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/BaseParser.java b/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/BaseParser.java
index d833faa..f51bb14 100644
--- a/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/BaseParser.java
+++ b/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/BaseParser.java
@@ -198,6 +198,10 @@ public class BaseParser {
}
protected void handleOtherAttribute(Object definition, String name, String ns, String val) throws XmlPullParserException {
+ // Ignore
+ if ("http://www.w3.org/2001/XMLSchema-instance".equals(ns)) {
+ return;
+ }
if (definition instanceof OtherAttributesAware) {
Map<QName, Object> others = ((OtherAttributesAware)definition).getOtherAttributes();
if (others == null) {