Hi again, I'm currently reading an .xml document using php dom. This is the code i'm using:
$doc = new domDocument();
$doc->load( 'images.xml' );
$images = $doc->getElementsByTagName( "image" );
foreach($images as $value )
{
$filelocs = $value->getElementsByTagName("fileloc");
$fileloc = $filelocs->item(0)->nodeValue;
echo "$fileloc";
}
The error I keep getting is: "Parse error: syntax error, unexpected T_OBJECT_OPERATOR" in this line: "$fileloc = $filelocs->item(0)->nodeValue;"
Does anyone know what i'm doing wrong? Any help is appreciated