<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've encountered the following problem in a project
I'm working on :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. When I parse an XML-file with the following
special characters : </FONT><FONT face=Arial size=2>&ldquo; test valid
zone &rdquo;</FONT></DIV>
<DIV><FONT face=Arial size=2> they obviously have to be
referenced in the DTD, otherwise the JDOM parser will give an
exception.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2. In the DTD I've included the following W3C
.ent-files : "xhtml-lat1.ent", "xhtml-special.ent" and "xhtml-symbol.ent" as
recommended in "XML in a nutshell" (O'Reilly)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3. The file now is correct according to
XMLSpy</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>4. When I start parsing it with JDOM, in order to
generate INSERT-statements for a MySQL Database, these Entities are *translated*
to gibberish : <FONT size=2>“ test invalid zone �</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>5. When I explicitly put them in my DTD : <FONT
size=2><!ENTITY ldquo "[ldquo ]"> they are translated to [ldquo ] in the
INSERT statement.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My question : how can I tell JDOM to just check if
the Entity is ok, and then DON'T translate it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you on beforehand,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sven.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>