summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode')
-rw-r--r--src/com/isode/stroke/parser/GenericPayloadParserFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/isode/stroke/parser/GenericPayloadParserFactory.java b/src/com/isode/stroke/parser/GenericPayloadParserFactory.java
index c9b258c..76f3fda 100644
--- a/src/com/isode/stroke/parser/GenericPayloadParserFactory.java
+++ b/src/com/isode/stroke/parser/GenericPayloadParserFactory.java
@@ -25,7 +25,7 @@ public class GenericPayloadParserFactory<T extends PayloadParser> implements Pay
}
public boolean canParse(final String element, final String ns, final AttributeMap attributes) {
- return element.equals(tag_) && xmlns_.equals(ns);
+ return (tag_.isEmpty() ? true : tag_.equals(element)) && (xmlns_.isEmpty() ? true : xmlns_.equals(ns));
}
public final PayloadParser createPayloadParser() {