Method | Description | |
---|---|---|
createXML ( string $node_name, array $arr = [] ) : DOMDocument | Convert an Array to XML. | |
init ( $version = '1.0', $encoding = 'UTF-8', $format_output = true ) | Initialize the root XML node [optional]. |
Method | Description | |
---|---|---|
bool2str ( $v ) | Get string representation of boolean value. | |
convert ( string $node_name, array $arr = [] ) : DOMNode | Convert an Array to XML. | |
getXMLRoot ( ) | Get the root XML node, if there isn't one, create it. | |
isValidTagName ( $tag ) | Check if the tag name or attribute name contains illegal characters Ref: http://www.w3.org/TR/xml/#sec-common-syn. |
public static init ( $version = '1.0', $encoding = 'UTF-8', $format_output = true ) | ||
$version | ||
$encoding | ||
$format_output |