Re: XML JDOM problems



On Wed, 27 Jun 2007 18:28:45 -0700, weetat wrote:

Hi all,

Here is the error log:

Error on line 46 of document file:/var/lib/tomcat5/webapps/xml/
data/iP4200_DRV_2.xml: The reference to entity "cmp" must end with the
';' delimiter.
org.jdom.input.JDOMParseException: Error on line 46 of document file:/
var/lib/tomcat5/webapps/xml/data/iP4200_DRV_2.xml: The reference to
entity "cmp" must end with the ';' delimiter.

A few items of point:
1. Don't top-post.
2. There is no need to include *all* of the quoted message, just the
relevant bit(s).

According to the XML specification, the character '&' in non-CDATA
sections indicates the start of an entity like   or &. Similarly
to the characters ",<, and >, it most be escaped (&amp; => &, &lt; => <
&gt; => >, etc.). I don't know the context, but either enclosing the text
box in a <![CDATA[ ... ]]> block or manually escaping it will fix the
problem.
.