System:Xml

From Aspen Documentation

The XML class is not loaded by default, although it is provided in the default distribution.

To enable the xml class, place the following configuration in any of your configuration files:

$config['load_add_core_class'][] = array('classname' => 'Xml', 'folder' => 'formats');


Function Description
arrayToXml Converts a single-tier array into a series of xml elements. It essentially takes array key names as the element names, and the array values as xml element containing text.
encode_for_xml Attempts to encode a string for use inside of an XML document, with basic consideration for html elements.