Exemplo n.º 1
0
std::string save_narrow(const pugi::xml_document& doc, unsigned int flags, pugi::xml_encoding encoding)
{
	xml_writer_string writer;

	doc.save(writer, STR("\t"), flags, encoding);

	return writer.as_narrow();
}
Exemplo n.º 2
0
 sb::string to_text() const {
     string_writer writer;
     m_doc.save(writer);
     return writer.result;
 }