Refactoring

This commit is contained in:
Oleg Korshul
2022-08-03 18:43:51 +03:00
parent 9977c2f4c2
commit 0469fe7b59
11 changed files with 206 additions and 103 deletions

View File

@ -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)
{