protected function unxmlise( $xml ) {
        // If it's not an array then it's probably just data.
        if (!is_array($xml)) {
            $text = s($xml);
        } else {
            // Otherwise parse the array.
            $text = '';
            foreach ($xml as $tag => $data) {
                // If tag is '@' then it's attributes and we don't care.
                if ($tag!=='@') {
                    $text = $text . $this->unxmlise( $data );
                }
            }
        }

        // Currently we throw the tags we found.
        $text = strip_tags($text);
        return $text;
    }
protected function unxmlise( $xml ) {
        // If it's not an array then it's probably just data.
        if (!is_array($xml)) {
            $text = s($xml);
        } else {
            // Otherwise parse the array.
            $text = '';
            foreach ($xml as $tag => $data) {
                // If tag is '@' then it's attributes and we don't care.
                if ($tag!=='@') {
                    $text = $text . $this->unxmlise( $data );
                }
            }
        }

        // Currently we throw the tags we found.
        $text = strip_tags($text);
        return $text;
    }
protected function unxmlise ( $ xml ) { // If it's not an array then it's probably just data. if ( ! is_array ( $ xml ) ) { $ text = s ( $ xml ) ; } else { // Otherwise parse the array. $ text = '' ; foreach ( $ xml as $ tag => $ data ) { // If tag is '@' then it's attributes and we don't care. if ( $ tag !== '@' ) { $ text = $ text . $ this -> unxmlise ( $ data ) ; } } } // Currently we throw the tags we found. $ text = strip_tags ( $ text ) ; return $ text ; }
unxmlise reconstructs part of the xml data structure in order
to identify the actual data therein
@param array $xml section of the xml data structure
@return string data with evrything else removed
unxmlise reconstructs part of the xml data structure in order to identify the actual data therein