I'm tryig to learn xml and I'm recieving an "unexpected T_STRING" on the first line of the external xml file.
Here's my index.php:
<html>
<?php require('blogtastic.xml');?>
<body>
</body>
</html>
And here's blogtastic.xml, the file that creates the error(first line remember?):
<?xml version="1.0"?>
<moviebase>
<movie>
<title>
PHP: Behind the Parser
</title>
<plot>
So, this language. It's like, a programming language. Or is it a
scripting language? All is revealed in this thrilling horror spoof
of a documentary.
</plot>
</movie>
</moviebase>
And here is the exact error:
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\php_practice\blogtastic.xml on line 1
I am using XAMPP(v 2.5) if that helps.