public static function parseResponseRuleXml(SimpleXMLElement $xml){
        $returnValue = self::parseElementXml($xml);
        foreach($xml->children() as $child){
            $returnValue['expression'] = self::parseExpressionXml($child);
            break;
        }
        return $returnValue;
    }
public static function parseResponseRuleXml(SimpleXMLElement $xml){
        $returnValue = self::parseElementXml($xml);
        foreach($xml->children() as $child){
            $returnValue['expression'] = self::parseExpressionXml($child);
            break;
        }
        return $returnValue;
    }
public static function parseResponseRuleXml ( SimpleXMLElement $ xml ) { $ returnValue = self :: parseElementXml ( $ xml ) ; foreach ( $ xml -> children ( ) as $ child ) { $ returnValue [ 'expression' ] = self :: parseExpressionXml ( $ child ) ; break ; } return $ returnValue ; }
Parse a QTI responseRule node into an array

@see http://www.imsglobal.org/question/qtiv2p1/imsqti_infov2p1.html#element10408
@param SimpleXMLElement $xml
@return array
Parse a QTI responseRule node into an array