File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes ERROR:  'The reference to entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "ERROR:  Watch "ERROR:  New topic
Author

ERROR: 'The reference to entity "L" must end with the ';' delimiter.'

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,

I am trying to integrate "Flying Saucer" to generate output as pdf but getting the subject error:


Please advise

Thanks in anticipation
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

Can you show us the exact error message you get on the command line?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

That would mean that your XML document contains an ampersand which hasn't been escaped properly. In particular the error message says that it's &L and it suggests that you might have meant to use an entity from the DTD, namely &L;.

But more likely you just produced malformed XML and should have had &L.

It looks like you're producing XML by string concatenation. So if you are inserting a text node into XML that way, make sure you escape characters which could be markup characters correctly. Those include & and < and >. Or alternatively, generate your XML with some standard API which knows how to work with XML.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
I am grateful to you from the bottom of my heart. This fixed my issue.

Kindest regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ERROR: 'The reference to entity "L" must end with the ';' delimiter.'