static NodeType addChild(NodeType node, const std::string& name) { XMLCh buffer[256]; xercesc::XMLString::transcode(name.c_str(), buffer, sizeof(buffer)); NodeType child = node->getOwnerDocument()->createElement(buffer); node->appendChild(child); return child; }
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; }