diff options
author | Andreas Straub <andreas.straub@rwth-aachen.de> | 2015-06-25 16:58:24 +0200 |
---|---|---|
committer | Andreas Straub <andy@strb.org> | 2015-07-19 21:32:26 +0200 |
commit | 77619b55e47aafbe6b5a530b33ce8b6a77a615dd (patch) | |
tree | f77394162a87438c223642d0fa7cf6a29f0aafd8 /src/main/java/eu/siacs/conversations/xml | |
parent | f73aa1a2006beb741bc39026bfd10e6166d7951a (diff) |
Added PEP and message protocol layers
Can now fetch/retrieve from PEP, as well as encode/decode messages
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xml')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xml/Element.java | 5 |
1 files changed, 5 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 32657c66..dc5a68f6 100644 --- a/src/main/java/eu/siacs/conversations/xml/Element.java +++ b/src/main/java/eu/siacs/conversations/xml/Element.java @@ -21,6 +21,11 @@ public class Element { this.name = name; } + public Element(String name, String xmlns) { + this.name = name; + this.setAttribute("xmlns", xmlns); + } + public Element addChild(Element child) { this.content = null; children.add(child); |