preg_match('@<message>(.*?)<\/message>@', $result, $message);
echo $message[1];