. Advertisement .
..3..
. Advertisement .
..4..
The error
XML Parsing Error: not well-formed
Location: http://localhost/mydesk/sitemap.php
Line Number 24489, Column 69:
"XML Parsing Error: not well-formed".
occurred when I create a sitemap XML from my database through PHP. I’ve tried to fix it for some days but have not resolved it yet. Can someone suggest a relevant solution to fix the ”xml parsing error: not well-formed” issue? Much appreciate your support.
The cause:
You have got this error because there is a symbol which is placed in inaccurate site.
Solution:
Are you able to open your XML file in a hex editor? If so, check to determine if it uses 1 or 2 bytes for each character. You should attempt UTF-16 for encoding if it requires 2 bytes per character. If you do that, let’s remember that UTF-8 is the only encoding that a parser is guaranteed to support. Though not all do, should support UTF-16 as well.
This error message may be displayed if you press the “View Source” button.
Ctrl
+
U
It is common to have the
"
symbol at the wrong place. Also, check your HTML syntax.