EntityRef: expecting ';' error while creating the xml file?
This page contains the following errors:
error on line 68 at column 18: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
Generally this error occured when any value have & in the value between tag
example: <Name>PHP & C</Name>
So & break the xml and due to this it shows the error
just replace & with & in your value field
example:
$output .= "<Name>" . str_replace('&', '&', $row['name']) . "</Name>";
I hope this will help you.
If helped then dont forget to comment to inspire me :)
Comments
Post a Comment