aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/xml/Element.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-12-04 22:03:46 +0100
committerDaniel Gultsch <daniel@gultsch.de>2015-12-04 22:03:46 +0100
commit41dcd8005b07cf7a2362dc349ba281defef514dc (patch)
tree5680940e8a3dbd9ee75051138c67bb324b571100 /src/main/java/eu/siacs/conversations/xml/Element.java
parentcd9a29718bcf961cdae2bb88ad65066e7347bfb5 (diff)
parse stanza-id from messages
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xml/Element.java')
-rw-r--r--src/main/java/eu/siacs/conversations/xml/Element.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/xml/Element.java b/src/main/java/eu/siacs/conversations/xml/Element.java
index e82c446b..34794be1 100644
--- a/src/main/java/eu/siacs/conversations/xml/Element.java
+++ b/src/main/java/eu/siacs/conversations/xml/Element.java
@@ -182,4 +182,8 @@ public class Element {
String attr = getAttribute(name);
return (attr != null && (attr.equalsIgnoreCase("true") || attr.equalsIgnoreCase("1")));
}
+
+ public String getNamespace() {
+ return getAttribute("xmlns");
+ }
}