1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 14:32:06 +01:00

Pass XmlEnvironment to toXML()

This commit is contained in:
Paul Schaub 2019-08-31 16:48:35 +02:00
parent 3cac79f895
commit 0fc9822eaa
3 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ public class DataExtension implements ExtensionElement {
@Override @Override
public CharSequence toXML(XmlEnvironment xmlEnvironment) { public CharSequence toXML(XmlEnvironment xmlEnvironment) {
XmlStringBuilder xml = new XmlStringBuilder(this); XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
xml.rightAngleBracket(); xml.rightAngleBracket();
xml.escape(this.getDataAsString()); xml.escape(this.getDataAsString());
xml.closeElement(this); xml.closeElement(this);

View file

@ -102,7 +102,7 @@ public class MetadataExtension implements ExtensionElement {
@Override @Override
public CharSequence toXML(XmlEnvironment xmlEnvironment) { public CharSequence toXML(XmlEnvironment xmlEnvironment) {
XmlStringBuilder xml = new XmlStringBuilder(this); XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
appendInfoElements(xml); appendInfoElements(xml);
appendPointerElements(xml); appendPointerElements(xml);
closeElement(xml); closeElement(xml);