static void setText(NodeType node, const std::string& text) { node.appendChild(node.ownerDocument().createTextNode(text.c_str())); }
static NodeType addChild(NodeType node, const std::string& name) { QDomElement child = node.ownerDocument().createElement(name.c_str()); node.appendChild(child); return child; }