diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-04 22:03:46 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-12-04 22:03:46 +0100 |
commit | 41dcd8005b07cf7a2362dc349ba281defef514dc (patch) | |
tree | 5680940e8a3dbd9ee75051138c67bb324b571100 /src/main/java/eu/siacs/conversations/xml/Element.java | |
parent | cd9a29718bcf961cdae2bb88ad65066e7347bfb5 (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.java | 4 |
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"); + } } |