Error: “Error parsing XML: XML or text declaration not at start of entity”

There can be two cases –

case 1 – If you have an empty space before the first statement.

case 2 – If you have accidently put the same namespacing statement twice ie – ?xml version=”1.0″ encoding=”utf-8″?

I did it once and landed with the same error of yours after correcting it my code runs fine.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)