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(); }
sb::string to_text() const { string_writer writer; m_doc.save(writer); return writer.result; }