src/Sulu/Component/Webspace/Loader/XmlFileLoader10.php
protected function getOptionalNodeAttribute(\DOMNode $node, $name, $default = null)
    {
        $attribute = $node->attributes->getNamedItem($name);
        if ($attribute) {
            return $attribute->nodeValue;
        }

        return $default;
    }
protected function getOptionalNodeAttribute(\DOMNode $node, $name, $default = null)
    {
        $attribute = $node->attributes->getNamedItem($name);
        if ($attribute) {
            return $attribute->nodeValue;
        }

        return $default;
    }
protected function getOptionalNodeAttribute ( \ DOMNode $ node , $ name , $ default = null ) { $ attribute = $ node -> attributes -> getNamedItem ( $ name ) ; if ( $ attribute ) { return $ attribute -> nodeValue ; } return $ default ; }
Returns an optional value from the given node. The default value will be used if the node does not exist.

@param \DOMNode $node
@param string $name
@param mixed $default

@return mixed
Returns an optional value from the given node . The default value will be used if the node does not exist .