<?php $xml = new SimpleXMLElement('<data/>'); $name="header and body"; $value="This & That"; $xml->$name=$value; //$xml->addChild ($name, $value); print_r($xml);
You have javascript disabled. You will not be able to edit any code.