File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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