Пример #1
0
    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;
    }
Пример #2
0
 static void setText(NodeType node, const std::string& text)
 {
     node.appendChild(node.ownerDocument().createTextNode(text.c_str()));
 }
Пример #3
0
 static NodeType addChild(NodeType node, const std::string& name)
 {
     QDomElement child = node.ownerDocument().createElement(name.c_str());
     node.appendChild(child);
     return child;
 }