Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes Unicode: 0x15 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Unicode: 0x15" Watch "Unicode: 0x15" New topic

Unicode: 0x15

Abhi Venu
Ranch Hand

Joined: Jul 09, 2009
Posts: 73
My xml file is using UTF-8 encoding. while parsing the xml "An invalid XML character (Unicode: 0x15) was found in the element content of the document " error is generated .which character may be causing this issue?Why does this happen?

A table, a chair, a bowl of fruit and a violin; what else does a man need to be happy?:Einstein
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

It's the character 0x15 causing the issue (as the error message says). It happens because that character cannot appear in a well-formed XML document. See section 2.2 of the XML Recommendation. And notify the person who provided the document that it is not well-formed.
I agree. Here's the link:
subject: Unicode: 0x15
It's not a secret anymore!