mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Refactoring
This commit is contained in:
@ -1046,6 +1046,7 @@ namespace XmlUtils
|
||||
|
||||
std::string NSXmlCanonicalizator::Execute(const std::string& sXml, int mode, bool withComments)
|
||||
{
|
||||
#ifdef LIBXML_C14N_ENABLED
|
||||
xmlDocPtr xmlDoc = xmlParseMemory((char*)sXml.c_str(), (int)sXml.length());
|
||||
|
||||
CXmlBuffer bufferC14N;
|
||||
@ -1059,6 +1060,9 @@ namespace XmlUtils
|
||||
xmlOutputBufferClose(_buffer);
|
||||
|
||||
return bufferC14N.builder.GetData();
|
||||
#else
|
||||
return "";
|
||||
#endif
|
||||
}
|
||||
std::string NSXmlCanonicalizator::Execute(const std::wstring& sXmlFile, int mode, bool withComments)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user