src/Sulu/Component/Util/XmlUtil.php
public static function getBooleanValueFromXPath($path, \DOMXPath $xpath, \DomNode $context = null, $default = null)
    {
        $value = self::getValueFromXPath($path, $xpath, $context, $default);

        if (null === $value) {
            return;
        }

        return 'true' === $value || true === $value;
    }
public static function getBooleanValueFromXPath($path, \DOMXPath $xpath, \DomNode $context = null, $default = null)
    {
        $value = self::getValueFromXPath($path, $xpath, $context, $default);

        if (null === $value) {
            return;
        }

        return 'true' === $value || true === $value;
    }
public static function getBooleanValueFromXPath ( $ path , \ DOMXPath $ xpath , \ DomNode $ context = null , $ default = null ) { $ value = self :: getValueFromXPath ( $ path , $ xpath , $ context , $ default ) ; if ( null === $ value ) { return ; } return 'true' === $ value || true === $ value ; }
Returns boolean value of path.

@param string $path
@param \DOMXPath $xpath
@param \DomNode $context
@param mixed $default

@return bool|null|string|mixed
Returns boolean value of path .