ns am producing a sitemap XML from my database it"s about videos sitemap. In XML, i am fetching the video title together title and also description as description, however there room some titles and also descriptions created in Thai, Portuguese, German, and other languages. If generating the XML through PHP i am dealing with a problem that says:

"XML Parsing Error: no well-formed".

Generation of the XML stop after encountering this error.

You are watching: Xml parsing error: not well-formed

XML Parsing Error: not well-formedLocation: http://localhost/mydesk/sitemap.phpLine Number 24489, obelisk 69:I it was observed it had invalid characters like listed below, and also I have replaced all types of these characters, however I establish there are other personalities being offered in various other languages.

Is there any method to take care of this worry that supports every languages?


xml
re-publishing
boost this concern
follow
edited Jul 11 "16 at 3:34
*

shA.t
15.5k55 yellow badges4848 silver badges9797 bronze title
request Apr 7 "12 at 5:07
*

user838037user838037
18311 gold badge11 silver- badge77 bronze badges
5
include a comment |

3 answers 3


active oldest Votes
8
If you gain this error message shot view the page resource by pushing Ctrl+UUsually there is a " prize in dorn place. And check her html syntax.


re-superstructure
boost this prize
follow
edited Jul 11 "16 at 3:32
*

shA.t
15.5k55 yellow badges4848 silver- badges9797 bronze badges
answer Oct 18 "12 at 18:29
*

FDiskFDisk
6,81511 gold badge4141 silver- badges5050 bronze badges
include a comment |
1
Can you open up your xml file in a hex editor? If so see if the takes 1 byte every character or 2. If that takes 2 bytes per character friend should try UTF-16 for encoding instead. If you perform keep in mind that the just encoding you have the right to guarantee a parser will support is UTF-8. Should support UTF-16 too but not all do.


re-superstructure
enhance this answer
monitor
answer Jul 11 "16 in ~ 3:51
*

mister270mister270
26611 silver- badge1515 bronze title
add a comment |
1
I had the exact same error in Firefox, parsing one SVG string, and it just disappeared through "text/html" as mimeType. I had actually tried "image/svg+xml" and "application/xml" before and also found in the https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString hand-operated they room functionally identical anyway, so ns tried..


re-superstructure
enhance this prize
monitor
answered Oct 7 at 12:06
ekkevekkev
1133 bronze badges
add a comment |

her Answer


Thanks for contributing response to ridge Overflow!

Please be certain to answer the question. Carry out details and also share your research!

But avoid

Asking because that help, clarification, or responding to various other answers.Making statements based upon opinion; back them increase with referrals or an individual experience.

To discover more, view our advice on writing an excellent answers.

See more: How To Seal A Window Air Conditioner For The Winter, How To Seal An Air Conditioner In Winter


Draft saved
Draft discarded

Sign up or log in


authorize up using Google
sign up making use of Facebook
sign up making use of Email and also Password
send

Post as a guest


surname
email Required, but never shown


Post together a guest


name
email

Required, however never shown


short article Your price Discard

By click “Post her Answer”, friend agree come our terms of service, privacy policy and also cookie policy


Not the prize you're looking for? Browse various other questions tagged xml or asking your very own question.


The Overflow Blog
Featured ~ above Meta
connected
1004
What personalities do I need to escape in XML documents?
1103
just how to parse XML and also count instances of a details node attribute?
847
how do i comment the end a block of sign in XML?
1130
What does in XML mean?
2219
how do you parse and process HTML/XML in PHP?
46
error: Error parsing XML: no well-formed (invalid token) ...?
1
XML no well formed because of long UTF characters
0
opposite people "XML Parsing Error: no well-formed" error
1
XML Sitemap Parsing Error through PHP
2
Escaping poor XML when parsing
warm Network questions much more hot inquiries

inquiry feed
i ordered it to RSS
question feed To i ordered it to this RSS feed, copy and paste this URL right into your RSS reader.


lang-xml
stack Overflow
commodities
agency
ridge Exchange Network
site architecture / logo design © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.10.29.40598


Stack Overflow works finest with JavaScript permitted
*

her privacy

By click “Accept all cookies”, friend agree ridge Exchange deserve to store cookie on your machine and disclose info in accordance with our Cookie Policy.