1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

Fixed #getChildElementXML to include the node attribute. SMACK-133

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2305 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-05-09 18:52:26 +00:00 committed by gdombiak
parent 8e6941e95d
commit 529818b559
2 changed files with 12 additions and 2 deletions

View file

@ -161,7 +161,12 @@ public class DiscoverInfo extends IQ {
public String getChildElementXML() {
StringBuffer buf = new StringBuffer();
buf.append("<query xmlns=\"http://jabber.org/protocol/disco#info\">");
buf.append("<query xmlns=\"http://jabber.org/protocol/disco#info");
if (getNode() != null) {
buf.append(" node=");
buf.append(getNode());
}
buf.append("\">");
synchronized (identities) {
for (int i = 0; i < identities.size(); i++) {
Identity identity = (Identity) identities.get(i);

View file

@ -120,7 +120,12 @@ public class DiscoverItems extends IQ {
public String getChildElementXML() {
StringBuffer buf = new StringBuffer();
buf.append("<query xmlns=\"http://jabber.org/protocol/disco#items\">");
buf.append("<query xmlns=\"http://jabber.org/protocol/disco#items");
if (getNode() != null) {
buf.append(" node=");
buf.append(getNode());
}
buf.append("\">");
synchronized (items) {
for (int i = 0; i < items.size(); i++) {
Item item = (Item) items.get(i);