Help with a web project

I have been trying to get this to launch from my web site, it’s basicly a Streaming radio player for the public, I developed for our game community.

It comes up with this error when the page link is trying to load.

<html>
<head>
<title>Music Machine</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br />
<b>Fatal error</b>:  Cannot instantiate non-existent class:  simplexmlelement in <b>/" " "/Music Machine.php</b> on line <b>84</b><br />

Evidently the host is using an older version of PHP and has not upgraded to 5, what code could I change or use in here to work with an older version of php to get the rest of the page to launch?

Line 84:  $xml = new SimpleXMLElement($xmlstr);

Any help would be much appreciated, I have little knowledge of PHP code.

<html>
<head>
<title>Music Machine</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 
<?php
 
if (strlen($play) > 20) {
  $play = 'shorten';
} else {
 
  $xmlstr = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<songs>
  <song>
    <name>shorten</name>
    <url>Please shorten play to less then 20 charecters</url>
  </song>
    <song>
    <name>Country</name>
    <url>http://</url>
  </song>
  <song>
    <name>Latin</name>
    <url>http://</url>
  </song>
  <song>
    <name></name>
    <url></url>
  </song>
</songs>
XML;
 
  $xml = new SimpleXMLElement($xmlstr);
  $songs[''] = '';
 
  foreach ($xml->xpath('//song') as $song) {
    $songName = (string)$song->name;
    $songUrl = (string)$song->url;
    $songs[$songName] = $songUrl;
  }
}
?>