Sample code for 30+ languages & platforms
Node.js

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 Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var xml = new chilkat.Xml();

    xml.Tag = "abc";
    xml.Content = "123";

    console.log(xml.GetXml());

}

chilkatExample();