Estos son los
nuevos errores que me aparecen al ejecutar el fichero, ¿alguien sabe a que se deben?
Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: a line 8 and p in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): </p> in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): ^ in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): Entity: line 16: parser error : Opening and ending tag mismatch: a line 8 and body in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): </body> in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): ^ in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): Entity: line 17: parser error : Opening and ending tag mismatch: p line 7 and html in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): </html> in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): ^ in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): Entity: line 17: parser error : Premature end of data in tag body line 6 in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): </html> in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): ^ in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): Entity: line 17: parser error : Premature end of data in tag html line 2 in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): </html> in /opt/lampp/htdocs/xemele.php on line 21
Warning: simplexml_load_string(): ^ in /opt/lampp/htdocs/xemele.php on line 21
La
solución es usar
entidades númericas(XML no admite entidades con nombre, <)