public function nodeValue(DOMElement &$element, $value = null)
    {
        // If given value is null, return the current value
        if (is_null($value)) {
            return $element->nodeValue;
        }

        // Return the new value
        return $element->nodeValue = $value;
    }