PHP
PHP
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 PHP Downloads
<?php
use Chilkat2\Xml;
$xml = new Xml();
$xml->Tag = 'abc';
$xml->Content = '123';
echo $xml->GetXml(), "\n";