[jdom-interest] [Fwd: Escaping ampersand left in output from
scott.yeadon at anu.edu.au
Sun Jan 23 15:42:34 PST 2005
Sorry I tell a lie, it's the w3c.dom APIs which are doing this...(but if
this is also true of JDOM's XMLOutputter, the question still stands!
When writing out a file using the XMLOutputter, character entities are
left escaped. Is this behaviour intentional? I would have thought this
would only be required for internal processing and the ampersand entity,
when affixed to a character entity, should be de-escaped when output.
For example, I currently get &#x4e24; in my output instead of
两 which browsers do not understand. Is there a way of turning
this behaviour off, or does anyone know the appropriate way to handle
this in JDOM (I'd rather not do a post-process!)?
More information about the jdom-interest