protected function getValueFromElement(DOMElement $element)
	{
		return (!$element->attributes->length && $element->childNodes->length === 1 && $element->firstChild->nodeType === XML_TEXT_NODE)
		     ? $element->nodeValue
		     : $this->getElementConfig($element);
	}
protected function getValueFromElement(DOMElement $element)
	{
		return (!$element->attributes->length && $element->childNodes->length === 1 && $element->firstChild->nodeType === XML_TEXT_NODE)
		     ? $element->nodeValue
		     : $this->getElementConfig($element);
	}
protected function getValueFromElement ( DOMElement $ element ) { return ( ! $ element -> attributes -> length && $ element -> childNodes -> length === 1 && $ element -> firstChild -> nodeType === XML_TEXT_NODE ) ? $ element -> nodeValue : $ this -> getElementConfig ( $ element ) ; }
Extract a value from given element

@param  DOMElement $element
@return mixed
Extract a value from given element