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?

boost this concern
edited Jul 11 "16 at 3:34

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

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

3 answers 3

active oldest Votes
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.

boost this prize
edited Jul 11 "16 at 3:32

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

6,81511 gold badge4141 silver- badges5050 bronze badges
include a comment |
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.

enhance this answer
answer Jul 11 "16 in ~ 3:51

26611 silver- badge1515 bronze title
add a comment |
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..

enhance this prize
answered Oct 7 at 12:06
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

Post as a guest

email Required, but never shown

Post together a guest


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
What personalities do I need to escape in XML documents?
just how to parse XML and also count instances of a details node attribute?
how do i comment the end a block of sign in XML?
What does in XML mean?
how do you parse and process HTML/XML in PHP?
error: Error parsing XML: no well-formed (invalid token) ...?
XML no well formed because of long UTF characters
opposite people "XML Parsing Error: no well-formed" error
XML Sitemap Parsing Error through PHP
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.

stack Overflow
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.