This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in handling special characters in XML using FOP
 
Similar Threads
XSD type: CDATA
Apache FOP to PDF Arabic display problem
XMLForest and special characters
Problem in handling special characters using FOP generating pdf
Unicode parsing exception