Example #1
0
DFNode *DFCreateTextNode(DFDocument *doc, const char *data)
{
    DFNode *node = DocumentCreateNode(doc,DOM_TEXT);
    node->value = DFCopyString(doc,data);
    return node;
}
Example #2
0
DFNode *DFCreateCDATASection(DFDocument *doc, char *data)
{
    DFNode *node = DocumentCreateNode(doc,DOM_CDATA);
    node->value = DFCopyString(doc,data);
    return node;
}
Example #3
0
void DFSetNodeValue(DFNode *node, const char *value)
{
    node->value = DFCopyString(node->doc,value);
}
Example #4
0
DFNode *DFCreateComment(DFDocument *doc, const char *data)
{
    DFNode *node = DocumentCreateNode(doc,DOM_COMMENT);
    node->value = DFCopyString(doc,data);
    return node;
}