This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes problem in handling special characters in XML using FOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem in handling special characters in XML using FOP" Watch "problem in handling special characters in XML using FOP" New topic
Author

problem in handling special characters in XML using FOP

venki janapati
Greenhorn

Joined: Dec 26, 2002
Posts: 19
hi,
I am getting some special characters into DOM while creating bcos the data is having special chars in database. when i render PDF using FOP it gives following error:
FOPException an invalid character in XML .
can some one suggest what i can do

Thanks for help in advance
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Did you set any encoding in ?xm? header? You can also try HTML encode for special charcters in form &#nnn;.


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
 
jQuery in Action, 2nd edition
 
subject: problem in handling special characters in XML using FOP