[jdom-interest] What's the matter with this error message?

Jason Hunter jhunter at collab.net
Tue Mar 13 18:56:47 PST 2001

"David M. Goudreau" wrote:
> org.jdom.JDOMException: Error in building from stream: The data "Britney
> Spears:!Oops??id It Again" is not legal for a JDOM attribute: 0xdce6 is not
> a legal XML character.
> What character is "0xdce6"?  

Consult your favorite Unicode reference book.

> I though JDOM handled internally any "illegal"
> characters by converting them on the fly.  Thanks in advance.

Characters are checked for conformance to the XML spec.  If you try to
create an attribute with a value containing chars that are illegal, JDOM
catches it.  It's the same as how a parser would catch it.


More information about the jdom-interest mailing list