do not check if namespace equals prefix for attributes

This commit is contained in:
Daniel Gultsch 2017-05-30 19:05:36 +02:00
parent 6ccdd1227e
commit 50f61a4d91
1 changed files with 1 additions and 1 deletions

View File

@ -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);