public function getElementMinOccurs($name)
    {
        foreach ($this->element->getElementsByTagName('element') as $element) {
            if ($element->getAttribute('name') == $name) {
                $minOccurs = $element->getAttribute('minOccurs');
                if ($minOccurs === '') {
                    return null;
                }
                return (int) $minOccurs;
            }
        }
        return null;
    }
public function getElementMinOccurs($name)
    {
        foreach ($this->element->getElementsByTagName('element') as $element) {
            if ($element->getAttribute('name') == $name) {
                $minOccurs = $element->getAttribute('minOccurs');
                if ($minOccurs === '') {
                    return null;
                }
                return (int) $minOccurs;
            }
        }
        return null;
    }
public function getElementMinOccurs ( $ name ) { foreach ( $ this -> element -> getElementsByTagName ( 'element' ) as $ element ) { if ( $ element -> getAttribute ( 'name' ) == $ name ) { $ minOccurs = $ element -> getAttribute ( 'minOccurs' ) ; if ( $ minOccurs === '' ) { return null ; } return ( int ) $ minOccurs ; } } return null ; }
Returns the minOccurs value of the element.
@param $name string The name of the sub element
@return int the minOccurs value of the element
Returns the minOccurs value of the element .