src/Parser.php
private function parseUnsetResultNodes(DOMElement $child, $name, $oname, $pName, array &$result, $prefix = null)
    {
        if ($this->isListKey($name, $prefix) || $this->isEqualOrPluralOf($this->normalizeKey($pName), $oname)) {
            // if attributes index is set, use it as index
            if (($index = $child->getAttribute($this->getIndexAttributeKey())) && 0 !== strlen($index)) {
                $child->removeAttribute($this->getIndexAttributeKey());

                return $result[static::getPhpValue($index)] = static::getPhpValue($child, null, $this);
            }

            return $result[] = static::getPhpValue($child, null, $this);
        }

        $value = static::getPhpValue($child, null, $this);

        if (1 < $this->getEqualNodes($child, $prefix)->length) {
            return $result[$name][] = $value;
        }

        return $result[$name] = $value;
    }
private function parseUnsetResultNodes(DOMElement $child, $name, $oname, $pName, array &$result, $prefix = null)
    {
        if ($this->isListKey($name, $prefix) || $this->isEqualOrPluralOf($this->normalizeKey($pName), $oname)) {
            // if attributes index is set, use it as index
            if (($index = $child->getAttribute($this->getIndexAttributeKey())) && 0 !== strlen($index)) {
                $child->removeAttribute($this->getIndexAttributeKey());

                return $result[static::getPhpValue($index)] = static::getPhpValue($child, null, $this);
            }

            return $result[] = static::getPhpValue($child, null, $this);
        }

        $value = static::getPhpValue($child, null, $this);

        if (1 < $this->getEqualNodes($child, $prefix)->length) {
            return $result[$name][] = $value;
        }

        return $result[$name] = $value;
    }
private function parseUnsetResultNodes ( DOMElement $ child , $ name , $ oname , $ pName , array & $ result , $ prefix = null ) { if ( $ this -> isListKey ( $ name , $ prefix ) || $ this -> isEqualOrPluralOf ( $ this -> normalizeKey ( $ pName ) , $ oname ) ) { // if attributes index is set, use it as index if ( ( $ index = $ child -> getAttribute ( $ this -> getIndexAttributeKey ( ) ) ) && 0 !== strlen ( $ index ) ) { $ child -> removeAttribute ( $ this -> getIndexAttributeKey ( ) ) ; return $ result [ static :: getPhpValue ( $ index ) ] = static :: getPhpValue ( $ child , null , $ this ) ; } return $ result [ ] = static :: getPhpValue ( $ child , null , $ this ) ; } $ value = static :: getPhpValue ( $ child , null , $ this ) ; if ( 1 < $ this -> getEqualNodes ( $ child , $ prefix ) -> length ) { return $ result [ $ name ] [ ] = $ value ; } return $ result [ $ name ] = $ value ; }
Parse a `DOMElement` if a result key is unset.

@param DOMElement $child
@param string $name
@param string $oname
@param string $pName
@param array $result
@param string $prefix
@param array $attrs

@return mixed the result
Parse a DOMElement if a result key is unset .