mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Change Element.toXml() to toXml(String enclosingNamespace)
This commit is contained in:
parent
380f9a2b72
commit
5ab2903c32
229 changed files with 634 additions and 536 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue