コード例 #1
0
ファイル: xerces.hpp プロジェクト: APTriTec/ponder
    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
ファイル: qtxml.hpp プロジェクト: MyOwnClone/camp
 static void setText(NodeType node, const std::string& text)
 {
     node.appendChild(node.ownerDocument().createTextNode(text.c_str()));
 }
コード例 #3
0
ファイル: qtxml.hpp プロジェクト: MyOwnClone/camp
 static NodeType addChild(NodeType node, const std::string& name)
 {
     QDomElement child = node.ownerDocument().createElement(name.c_str());
     node.appendChild(child);
     return child;
 }