public String getChildElementXML() { StringBuffer buf = new StringBuffer(); buf.append("<query xmlns=\"http://jabber.org/protocol/disco#items\""); if (getNode() != null) { buf.append(" node=\""); buf.append(getNode()); buf.append("\""); } buf.append(">"); synchronized (items) { for (int i = 0; i < items.size(); i++) { Item item = (Item) items.get(i); buf.append(item.toXML()); } } buf.append("</query>"); return buf.toString(); }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<query xmlns=\"http://jabber.org/protocol/disco#items\""); if (getNode() != null) { buf.append(" node=\""); buf.append(getNode()); buf.append("\""); } buf.append(">"); synchronized (items) { for (Item item : items) { buf.append(item.toXML()); } } buf.append("</query>"); return buf.toString(); }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<query xmlns=\"http://jabber.org/protocol/disco#items\""); if (getNode() != null) { buf.append(" node=\""); buf.append(getNode()); buf.append("\""); } buf.append(">"); synchronized (items) { for (Item item : items) { buf.append(item.toXML()); } } buf.append("</query>"); return buf.toString(); }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<query xmlns=\"" + NAMESPACE + "\""); if (getNode() != null) { buf.append(" node=\""); buf.append(StringUtils.escapeForXML(getNode())); buf.append("\""); } buf.append(">"); synchronized (items) { for (Item item : items) { buf.append(item.toXML()); } } buf.append("</query>"); return buf.toString(); }