Files
GseTDDUebungKCLR/database/FileZillaFTP/source/xml_utils.cpp
Riley Schneider b732d8d4b5 Initial Commit
2025-12-03 16:38:10 +01:00

24 lines
464 B
C++

#include "StdAfx.h"
#include "xml_utils.h"
#include "conversion.h"
#include "tinyxml/tinyxml.h"
namespace XML
{
CStdString ReadText(TiXmlElement* pElement)
{
TiXmlNode* textNode = pElement->FirstChild();
if (!textNode || !textNode->ToText())
return _T("");
return ConvFromNetwork(textNode->Value());
}
void SetText(TiXmlElement* pElement, const CStdString& text)
{
pElement->Clear();
pElement->LinkEndChild(new TiXmlText(ConvToNetwork(text)));
}
}