Sample code for 30+ languages & platforms
Dart

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

Dart
import 'package:chilkat/chilkat.dart';

void main() {
  final xml = CkXml();

  xml.tag = 'abc';
  xml.content = '123';

  print(xml.getXml());
}