[jdom-interest] don't validate comments

Christian Peter cpeter at rostock.igd.fhg.de
Thu Dec 5 02:36:47 PST 2002


Hi,

I get a org.jdom.IllegalDataException telling me that "Comments 
cannot contain double hyphens (--)", which doubtlessly is true
(if you are interested, http://www.nasa.org causes the exception).

However, I need to parse this document and since I'm not interested 
in the comments, I would like JDOM to simply ignore the content of a 
  comment. I thought I can achieve this by setting 
DOMBuilder.setValidation to false, but I still get this Exception.

Now I wonder, is it just me, who I have to set another option of 
another component, or is it a bug, or do I have to change the 
org.jdom.Verifyer class myself? Or is it done already on CVS? I use 
the 0.7 beta-8 version.

Many thanks for your help,

Christian

ps, if you could CC your answer to my email address, not just to the 
group, it would be good, since I use the digest mode.




More information about the jdom-interest mailing list