1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-13 14:31:08 +01: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

@ -79,10 +79,10 @@ public class CarbonExtension implements ExtensionElement {
}
@Override
public XmlStringBuilder toXML() {
public XmlStringBuilder toXML(String enclosingNamespace) {
XmlStringBuilder xml = new XmlStringBuilder(this);
xml.rightAngleBracket();
xml.append(fwd.toXML());
xml.append(fwd.toXML(null));
xml.closeElement(this);
return xml;
}
@ -150,7 +150,7 @@ public class CarbonExtension implements ExtensionElement {
}
@Override
public String toXML() {
public String toXML(String enclosingNamespace) {
return "<" + ELEMENT + " xmlns='" + NAMESPACE + "'/>";
}