| Author |
ERROR: 'The reference to entity "L" must end with the ';' delimiter.'
|
Farakh khan
Ranch Hand
Joined: Mar 22, 2008
Posts: 672
|
|
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: 19216
|
|
|
Can you show us the exact error message you get on the command line?
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Farakh khan
Ranch Hand
Joined: Mar 22, 2008
Posts: 672
|
|
|
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
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: 672
|
|
I am grateful to you from the bottom of my heart. This fixed my issue.
Kindest regards
|
 |
 |
|
|
subject: ERROR: 'The reference to entity "L" must end with the ';' delimiter.'
|
|
|