PHP Errors
I'm seeing the following errors/warnings in my server's error log file:
PHP Warning: DOMDocument::load() [<a href='domdocument.load'>domdocument.load</a>]: Extra content at the end of the document in /home/altmediaadmin/www/greensboro101.com/htdocs/includes/_promaps_cache/_promaps_geocache.xml, line: 3 in /home/altmediaadmin/www/greensboro101.com/htdocs/includes/google_javascript/promaps_geocache_php.php on line 21, referer: http://www.greensboro101.com/includes/EventsMap.php
PHP Fatal error: Call to a member function appendChild() on a non-object in /home/altmediaadmin/www/greensboro101.com/htdocs/includes/google_javascript/promaps_geocache_php.php on line 36, referer: http://www.greensboro101.com/includes/EventsMap.php
Lines 21 and 36 of promaps_geocahce_php.php referenced in the errors are as follows:
21: $dom->load($xmlFile);
36: $geocodeEntry = $root->appendChild($geocodeEntry);
And here is the _promaps_geocache.xml file
<?xml version="1.0" encoding="UTF-8"?>
<geocode_data version="1.0"><geocode_entry ID="113 N. Greene St. Greensboro NC 27401 U.S."><address><![CDATA[113 N. Greene St., Greensboro, NC, 27401, U.S.]]></address><geocode><![CDATA[(36.073109, -79.792041)]]></geocode></geocode_entry></geocode_data>
How can I eliminate these errors?