[jdom-interest] no conversion of entity number required

Jason Hunter 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.

-jh-

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 
> http://fr.answers.yahoo.com
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com


More information about the jdom-interest mailing list