Sample code for 30+ languages & platforms
Tcl

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 Tcl Downloads

Tcl

load ./chilkat.dll

set xml [new_CkXml]

CkXml_put_Tag $xml "abc"
CkXml_put_Content $xml "123"

puts [CkXml_getXml $xml]

delete_CkXml $xml