Don't pretty print IMDN and is-composing xml for compatibility with old implementation.

This commit is contained in:
Ghislain MARY 2018-05-09 11:10:20 +02:00
parent baa4eebbe1
commit 834cf06a91
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ string Imdn::createXml (const string &id, time_t timestamp, Imdn::Type imdnType,
map[""].name = "urn:ietf:params:xml:ns:imdn";
if (needLinphoneImdnNamespace)
map["imdn"].name = "http://www.linphone.org/xsds/imdn.xsd";
Xsd::Imdn::serializeImdn(ss, imdn, map);
Xsd::Imdn::serializeImdn(ss, imdn, map, "UTF-8", Xsd::XmlSchema::Flags::dont_pretty_print);
return ss.str();
}

View file

@ -60,7 +60,7 @@ string IsComposing::createXml (bool isComposing) {
stringstream ss;
Xsd::XmlSchema::NamespaceInfomap map;
map[""].name = "urn:ietf:params:xml:ns:im-iscomposing";
Xsd::IsComposing::serializeIsComposing(ss, node, map);
Xsd::IsComposing::serializeIsComposing(ss, node, map, "UTF-8", Xsd::XmlSchema::Flags::dont_pretty_print);
return ss.str();
}