• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22841
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you show us the exact error message you get on the command line?
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Sheriff
Posts: 28385
99
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am grateful to you from the bottom of my heart. This fixed my issue.

Kindest regards
 
reply
    Bookmark Topic Watch Topic
  • New Topic