[jdom-interest] no conversion of entity number required
jhunter at servlets.com
Tue Jul 17 21:10:25 PDT 2007
JDOM internally stores the *semantic* value of the XML not the
incidental serialized form it had before ingestion. That said, you can
with the outputter (via the Format class) plug in an EscapeStrategy that
dictates which characters to escape as character entities. It escapes
using the char's hex numeric value.
You could also just use the Format class to adjust the output encoding
to "US-ASCII" and then it'll escape all chars that aren't under 128.
Franck Glaser wrote:
> Good morning
> to feed an other software
> I have to process an xml
> including entity numbers.
> As usual
> saxbuilder is used to read the xml file
> and jdom to manipulate the xml.
> the output file is produced by XMLOutputter
> input file for instance includes:
> in the output file:
> À has been replaced by capital a, grave accent
> if there a way to forbid the conversion
> of entity number ?
> thank you for your time
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
> Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
> To control your jdom-interest membership:
More information about the jdom-interest