<?php
namespace Concrete\Core\Utility\Service;
class Xml {

	public function createCDataNode(\SimpleXMLElement $x, $nodeName, $content) {
		$node = $x->addChild($nodeName);
		$node = dom_import_simplexml($node);
		$no = $node->ownerDocument;
		$node->appendChild($no->createCDataSection($content));
		return $node;
	}


}
