This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19655
    
  18

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: 18541
    
    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.'
 
Similar Threads
can't get JTable(vector, vector) constructor to work
how to solve this type of stackoverflowerror...
Getting Formatted Content from jEditorPane
Jpanels and Jscrollpanels
XML Tranformation using XSLT