Method | Description | |
---|---|---|
createArray ( $input_xml ) : array | Convert an XML string or DOMDocument to an Array. | |
init ( $version = '1.0', $encoding = 'UTF-8', $format_output = true ) | Initialize the root XML node [optional]. |
Method | Description | |
---|---|---|
convert ( mixed $node ) : mixed | Convert an Array to XML. | |
getXMLRoot ( ) : DOMDocument | Get the root XML node, if there isn't one, create it. |
public static createArray ( $input_xml ) : array | ||
$input_xml | string|DOMDocument | |
return | array |
public static init ( $version = '1.0', $encoding = 'UTF-8', $format_output = true ) | ||
$version | ||
$encoding | ||
$format_output |