Hi,
following XML entities should be used when needed:
& (&)
&lt; (<)
&gt; (>)
&apos; (')
&quot; (")

regards,
Tcho 

-----Message d'origine-----
De : Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 juin 2004 11:24
À : [EMAIL PROTECTED]
Objet : Re: How to handle &in fop

[EMAIL PROTECTED] wrote:

> Hi everybody,
>
> When the data contains '&' like CUSTOMER_NAME= "L&G ASSURANCE SOCIETY 
> LTD " fop is throwing the following error:
>
> Caused By : javax.xml.transform.TransformerException : 
> org.xml.sax.SAXParseExcep
>
> tion: The reference to entity "G" must end with the ';' delimiter.
>
> Can anybody help in handling the character '&'.
>
Use &amp; instead.

To ensure that you always generate proper XML regardless of character set, you 
should change all characters above 127, and <, > and & to "&#numericvalue;" 
instead. The numeric value is the unicode value of the character.

-- 
  Thorbjoern Ravn Andersen      "...plus...Tubular Bells!"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to