This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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.
 
GeeCON Prague 2014
 
subject: Unicode: 0x15