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: Stanimir Stamenkov Newsgroups: comp.lang.java.programmer Subject: Re: large xml file... Date: Fri, 26 Aug 2011 08:47:33 +0300 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <4e5309a2$0$303$14726298@news.sunsite.dk> <4e5584ec$0$304$14726298@news.sunsite.dk> <4e56183b$0$2937$fa0fcedb@news.zen.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 26 Aug 2011 05:47:22 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="gFPlZe2n5S3/vjP07nuOag"; logging-data="26279"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vGB2eja0rHlzSSzgPDt60" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110813 SeaMonkey/2.3 In-Reply-To: <4e56183b$0$2937$fa0fcedb@news.zen.co.uk> X-Face: )>>ChyF_H On 25/08/2011 05:57, Stanimir Stamenkov wrote: >> Wed, 24 Aug 2011 19:10:26 -0400, /Arne Vajhøj/: >> >>> Any correct XML parser should convert the XML " to a " in >>> a Java String. >>> >>> Any correct XML formatter/serializer should convert it back again >>> when generating new XML. >> >> I think any sane XML serializer should not output " as " in text >> content. > > If you use an XML parser to read '...' you > will get a structure with an attribute with a value of '"'. > > If you serialise that structure back to XML again, I would hope to > get '...' again. Am I wrong? The serializer may choose (or be configured) to output: ... But my point was text content, not attribute values: " an then: " -- Stanimir