Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 18541
    
    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.
 
Consider Paul's rocket mass heater.
 
subject: Unicode: 0x15
 
Similar Threads
identifiers
(tm) symbol in xml using Xerces
Exception
AxisFault SAXParseException
query with Unicode