[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
0xampp
/
FileZillaFTP
/
source
/
[
Home
]
File: xml_utils.cpp
#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))); } }