[jdom-interest] escaped character handling

philip.nelson at omniresources.com philip.nelson at omniresources.com
Wed Aug 22 06:42:21 PDT 2001

> Is it possible to tell to JDOM not to transform
> escaped character to corresponding unicode characters?
> I have in XHTML file "–" and parsed JDOM document
> contains '-' character instead of string "–".
> And when I output that to file I'd like to get string "–".

Unfortunately, by the time JDOM sees character entities in SAXBuilder, they
have already been converted by the parser.  I really don't see any way to
handle this other than possibly with Xerces only, using the new native
interface functionality.

You could redefine these character entities in a doctype in the xml document
and refer to those instead of the character entities.  Then the browser
could recieve exactly what you want.

> I can fix this by converting all "–" strings to "–"
> in XHTM file, byt then it doesn't look corret at www-browser.
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
> uraddr at yourhost.com

More information about the jdom-interest mailing list