mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 05:51:08 +01: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
|
|
@ -55,7 +55,7 @@ public class Header implements ExtensionElement {
|
|||
}
|
||||
|
||||
@Override
|
||||
public XmlStringBuilder toXML() {
|
||||
public XmlStringBuilder toXML(String enclosingNamespace) {
|
||||
// Upcast to NamedElement since we don't want a xmlns attribute
|
||||
XmlStringBuilder xml = new XmlStringBuilder((NamedElement) this);
|
||||
xml.attribute("name", name);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class HeadersExtension implements ExtensionElement {
|
|||
}
|
||||
|
||||
@Override
|
||||
public XmlStringBuilder toXML() {
|
||||
public XmlStringBuilder toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
xml.rightAngleBracket();
|
||||
xml.append(headers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue