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?


xml
re-superstructure
improve this question
follow
edited Jul 11 "16 at 3:34
*

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

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

2 answer 2


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


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

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

FDiskFDisk
6,66711 yellow badge3939 silver badges4949 bronze badges
add a comment |
1
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.


re-publishing
boost this prize
monitor
answered Jul 11 "16 in ~ 3:51
*

mister270mister270
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
submit

Post together a guest


name
email Required, but never shown


Post as a guest


surname
email

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
connected
997
What personalities do I should escape in XML documents?
1100
exactly how to parse XML and also count instances that a particular node attribute?
843
just how do i comment out a block of tag in XML?
1118
What go in XML mean?
2213
how do you parse and procedure HTML/XML in PHP?
1
XML not well formed because of long UTF characters
0
opposite people "XML Parsing Error: no well-formed" error
1
XML Sitemap Parsing Error through PHP
0
"XML Parsing Error: not Well-Formed" In web browser Due to "Plus sign (+)", but Need that In API inquiry
1
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.


lang-xml
ridge Overflow
commodities
agency
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.