From 50f61a4d91103ee3eb2e44016ce6f499b6ef85c8 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 30 May 2017 19:05:36 +0200 Subject: [PATCH] do not check if namespace equals prefix for attributes --- src/main/java/eu/siacs/conversations/xml/XmlReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xml/XmlReader.java b/src/main/java/eu/siacs/conversations/xml/XmlReader.java index f2aade45b..3524e0c41 100644 --- a/src/main/java/eu/siacs/conversations/xml/XmlReader.java +++ b/src/main/java/eu/siacs/conversations/xml/XmlReader.java @@ -69,7 +69,7 @@ public class XmlReader { for (int i = 0; i < parser.getAttributeCount(); ++i) { final String prefix = parser.getAttributePrefix(i); String name; - if (prefix != null && !prefix.isEmpty() && !prefix.equals(xmlns)) { + if (prefix != null && !prefix.isEmpty()) { name = prefix+":"+parser.getAttributeName(i); } else { name = parser.getAttributeName(i);