1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Change Element.toXml() to toXml(String enclosingNamespace)

This commit is contained in:
Florian Schmaus 2018-04-25 14:20:18 +02:00
parent 380f9a2b72
commit 5ab2903c32
229 changed files with 634 additions and 536 deletions

View file

@ -818,7 +818,7 @@ public class EnhancedDebugger extends SmackDebugger {
messagesTable.addRow(
new Object[] {
XmlUtil.prettyFormatXml(packet.toXML().toString()),
XmlUtil.prettyFormatXml(packet.toXML(null).toString()),
dateFormatter.format(new Date()),
packetReceivedIcon,
packetTypeIcon,
@ -889,7 +889,7 @@ public class EnhancedDebugger extends SmackDebugger {
messagesTable.addRow(
new Object[] {
XmlUtil.prettyFormatXml(packet.toXML().toString()),
XmlUtil.prettyFormatXml(packet.toXML(null).toString()),
dateFormatter.format(new Date()),
packetSentIcon,
packetTypeIcon,
@ -946,13 +946,13 @@ public class EnhancedDebugger extends SmackDebugger {
}
@Override
public String toXML() {
public String toXML(String enclosingNamespace) {
return text;
}
@Override
public String toString() {
return toXML();
return toXML(null);
}
}

View file

@ -331,8 +331,8 @@ public class LiteDebugger extends SmackDebugger {
@Override
public void onIncomingStreamElement(TopLevelStreamElement streamElement) {
interpretedText1.append(streamElement.toXML().toString());
interpretedText2.append(streamElement.toXML().toString());
interpretedText1.append(streamElement.toXML(null).toString());
interpretedText2.append(streamElement.toXML(null).toString());
interpretedText1.append(NEWLINE);
interpretedText2.append(NEWLINE);
}