This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes INvalid XML character error 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 "INvalid XML character error" Watch "INvalid XML character error" New topic

INvalid XML character error

patni pat

Joined: Nov 28, 2012
Posts: 5

i am creating pdf using xml,getting error The character is an invalid XML character.its showing a "right arrow" as special character in log error.

anybody know which combination of special character is making arrow or how to skip this.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
When I see that error I immediately wonder if the XML document was edited at some point with MS Word and you are hitting "smart punctuation" characters.

A programmer's editor that can display in HEX is a great tool for debugging this sort of thing. The displayed "right arrow" may have little to do with the actual character.

I agree. Here's the link:
subject: INvalid XML character error
It's not a secret anymore!