Sample code for 30+ languages & platforms
React Native

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 React Native Downloads

React Native
import { Xml } from '@chilkat/react-native'

function chilkatExample() {
  const xml = new Xml();

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

  console.log(xml.getXml());
}