Sample code for 30+ languages & platforms
Unicode C

Setting XML Tag and Content

See more XML Examples

Demonstrates how to set the tag and content of an XML node.

The following XML sample code produces this output:


<abc>123</abc>

Chilkat Unicode C Downloads

Unicode C
#include <C_CkXmlW.h>

void ChilkatSample(void)
    {
    HCkXmlW xml;

    xml = CkXmlW_Create();

    CkXmlW_putTag(xml,L"abc");
    CkXmlW_putContent(xml,L"123");

    wprintf(L"%s\n",CkXmlW_getXml(xml));


    CkXmlW_Dispose(xml);

    }