[jdom-interest] Bug in JDOM or not ????????

Chris chris at bitmead.com
Wed Aug 20 06:26:24 PDT 2003


I'm parsing a file that looks like this....

But JDOM dies with this error....

org.jdom.input.JDOMParseException: Error on line 2: Reference to 
undefined entity "&reg;".

My understanding is that &reg; is valid XML. Certainly it is part of XHTML.

The spec I read here.....


Seems to indicate it is ok....

"In both SGML and XML, the ampersand character ("&") declares the 
beginning of an entity reference (e.g., &reg; for the registered 
trademark symbol "®")."

Is this a bug or is there something I don't understand???

More information about the jdom-interest mailing list