Sample code for 30+ languages & platforms
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 C++ Downloads

C++
#include <CkXml.h>

void ChilkatSample(void)
    {
    CkXml xml;

    xml.put_Tag("abc");
    xml.put_Content("123");

    std::cout << xml.getXml() << "\r\n";
    }