public static function setDOMElementValue(DOMElement $element, $value)
    {
        switch (gettype($value)) {
            case 'boolean':
                $element->nodeValue = ($value === true) ? 'true' : 'false';
            break;

            default:
                $element->nodeValue = $value;
            break;
        }
    }
public static function setDOMElementValue(DOMElement $element, $value)
    {
        switch (gettype($value)) {
            case 'boolean':
                $element->nodeValue = ($value === true) ? 'true' : 'false';
            break;

            default:
                $element->nodeValue = $value;
            break;
        }
    }
public static function setDOMElementValue ( DOMElement $ element , $ value ) { switch ( gettype ( $ value ) ) { case 'boolean' : $ element -> nodeValue = ( $ value === true ) ? 'true' : 'false' ; break ; default : $ element -> nodeValue = $ value ; break ; } }
Set the node value of a given DOMElement object. Boolean values will be transformed as 'true'|'false'.

@param DOMElement $element A DOMElement object.
@param mixed $value A given value.
Set the node value of a given DOMElement object . Boolean values will be transformed as true | false .