I am developing a sitemap XML from my database it"s around videos sitemap. In XML, ns am fetching the video title together title and description as description, yet there room some titles and also descriptions composed in Thai, Portuguese, German, and other languages. While generating the XML with PHP ns am encountering a problem that says:

"XML Parsing Error: not well-formed".

Generation that the XML stops after encountering this error.

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

XML Parsing Error: no well-formedLocation: http://localhost/mydesk/sitemap.phpLine Number 24489, obelisk 69:I it was observed it had invalid characters like provided below, and also I have actually replaced all varieties of this characters, yet I realized there room other personalities being supplied in various other languages.

Is there any way to handle this issue that supports all languages?

improve this question
edited Jul 11 "16 at 3:34

15.4k55 yellow badges4747 silver- badges9696 bronze badges
request Apr 7 "12 at 5:07

18311 yellow badge11 silver- badge77 bronze title
add a comment |

2 answer 2

active oldest Votes
If you acquire this error message shot view the page source by pressing Ctrl+UUsually there is a " symbol in wrong place. And also check your html syntax.

improve this prize
edited Jul 11 "16 in ~ 3:32

15.4k55 gold badges4747 silver badges9696 bronze badges
answered Oct 18 "12 in ~ 18:29

6,66711 yellow badge3939 silver badges4949 bronze badges
add a comment |
Can you open your xml record in a hex editor? If so check out if that takes 1 byte every character or 2. If the takes 2 bytes per character you should try UTF-16 because that encoding instead. If you do keep in mind the the only encoding you have the right to guarantee a parser will assistance is UTF-8. Should support UTF-16 too but not every do.

boost this prize
answered Jul 11 "16 in ~ 3:51

24411 silver- badge1414 bronze badges
add a comment |

your Answer

Thanks because that 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 on opinion; earlier them increase with references or personal experience.

To find out more, see our tips on writing great answers.

See more: How To Replace Samsung Galaxy S3 Screen Replacement, How To Replace Galaxy S3 Screen

Draft saved
Draft discarded

Sign increase or log in

authorize up using Google
authorize up utilizing Facebook
sign up utilizing Email and Password

Post together a guest

email Required, but never shown

Post as a guest


Required, however never shown

article Your answer Discard

By click “Post your Answer”, friend agree come our regards to service, privacy policy and cookie plan

Not the price you're feather for? Browse various other questions tagged xml or ask your own question.

The Overflow Blog
Featured ~ above Meta
Visit conversation
What personalities do I should escape in XML documents?
exactly how to parse XML and also count instances that a particular node attribute?
just how do i comment out a block of tag in XML?
What go in XML mean?
how do you parse and procedure HTML/XML in PHP?
XML not well formed because of long UTF characters
opposite people "XML Parsing Error: no well-formed" error
XML Sitemap Parsing Error through PHP
"XML Parsing Error: not Well-Formed" In web browser Due to "Plus sign (+)", but Need that In API inquiry
Escaping poor XML if parsing
warm Network concerns much more hot concerns

inquiry feed
subscribe to RSS
inquiry feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

ridge Overflow
ridge Exchange Network
site design / logo design © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.9.16.40232

Stack Overflow works ideal with JavaScript enabled

your privacy

By click “Accept all cookies”, friend agree ridge Exchange have the right to store cookie on your machine and disclose information in accordance v our Cookie Policy.