                foreach ($val as $vkey => $value) {
                    if ($vkey != 'LAST_UPDATED') {
                        if ($vkey != 'UPDATED_BY') {
                            if ($vkey == 'ID')
                                echo '<SCHOOL_ID>' . htmlentities($value) . '</SCHOOL_ID>';
                            else if ($vkey == 'SYEAR')
                                echo '<SCHOOL_YEAR>' . htmlentities($value) . '</SCHOOL_YEAR>';
                            else if ($vkey == 'TITLE')
                                echo '<SCHOOL_NAME>' . htmlentities($value) . '</SCHOOL_NAME>';
                            else if ($vkey == 'WWW_ADDRESS')
                                echo '<URL>' . htmlentities($value) . '</URL>';
                            else
                                echo '<' . $vkey . '>' . htmlentities($value) . '</' . $vkey . '>';
                        }
                    }
                }