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