• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us the exact error message you get on the command line?
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Paul Clapham
Sheriff
Pie
Posts: 20746
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am grateful to you from the bottom of my heart. This fixed my issue.

Kindest regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic