Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
	
	// http://coffeerings.posterous.com/php-simplexml-and-cdata
	class SimpleXMLExtended extends SimpleXMLElement {
		public function addCData($cdata_text) {
			$node = dom_import_simplexml($this); 
			$no   = $node->ownerDocument; 
			$node->appendChild($no->createCDATASection($cdata_text)); 
	  	} 

	}

?>

Commits for Nextrek/legal-map/ajax/SimpleXMLExtended.php

Diff revisions: vs.
Revision Author Commited Message
782 FSallustio picture FSallustio Thu 24 Sep, 2015 16:12:59 +0000