QByteArray Variant::toUtf8() const { QDomDocument doc; xmlWrite(doc, doc); QByteArray result = doc.toByteArray(0); return result.simplified(); }
void ofxXmlSerializable::xmlSave(string filename) { ofxXmlSettings file; xmlWrite(file); file.saveFile(ofToDataPath(filename)); }