Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: javax.xml.transform.Transformer and HTML entities Date: Tue, 11 Oct 2011 19:15:35 -0400 Organization: A noiseless patient Spider Lines: 32 Message-ID: References: <4e94c9cd$0$29390$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 11 Oct 2011 23:14:18 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="Z+UYWCPnTu4kxHsUACWmFQ"; logging-data="13271"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6cPQo+A3r1sAqlwXtvt5ZIp7yPczZQXU=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111004 Icedove/3.0.11 In-Reply-To: <4e94c9cd$0$29390$426a74cc@news.free.fr> Cancel-Lock: sha1:t2kEOwWSEqUCVTIWfCs50xupONw= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8723 On 10/11/2011 06:57 PM, Aéris wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I have a problem with Java XML Transformer escaping. > > I use Transformer to create a HTML file from an DOM Document. > But in generated HTML, all «& » on text nodes in the document, which > are parts of already escaped HTML entities like «  », are > re-escaped by Transformer. > > See this sample : http://pastebin.com/LfGpWMai > Instead of expected >
> I get >
&mdash;
> > I search on doc and Google, but nothing found to disable escaping. > Is there anybody to help me ? > > Thanks > I'm sorry I cannot help. I only comment that I am experiencing the opposite problem with javax.xml.stream.EventReader. Either I haven't figured out how to configure the reader or haven't grokked the XML. Best of luck.