public function isElementNillable($name)
    {
        foreach ($this->element->getElementsByTagName('element') as $element) {
            if ($element->getAttribute('name') == $name && $element->getAttribute('nillable') == true) {
                return true;
            }
        }
        return false;
    }
public function isElementNillable($name)
    {
        foreach ($this->element->getElementsByTagName('element') as $element) {
            if ($element->getAttribute('name') == $name && $element->getAttribute('nillable') == true) {
                return true;
            }
        }
        return false;
    }
public function isElementNillable ( $ name ) { foreach ( $ this -> element -> getElementsByTagName ( 'element' ) as $ element ) { if ( $ element -> getAttribute ( 'name' ) == $ name && $ element -> getAttribute ( 'nillable' ) == true ) { return true ; } } return false ; }
Returns whether a sub element of the type may be undefined for the type.

@param string $name The name of the sub element.
@return bool Whether the sub element may be undefined for the type.
Returns whether a sub element of the type may be undefined for the type .