Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Serializer to stop adjusting whitespace - roundtrip problem

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Serializer to stop adjusting whitespace - roundtrip problem
  • Date: Thu, 13 Aug 2009 07:13:44 -0700

On Thu, Aug 13, 2009 at 5:54 AM, Peter Taylor<peter.taylor AT greenhat.com>
wrote:

> Since the spec tells you how attribute whitespace is normalized could
> one not, with care, write out attributes with formatting/indentation
> such that the whitespace changes would be removed by the normalization
> when the document is then read?
>
> Leaving aside whether this SHOULD be done, would you agree that this
> could be done?

Sure, and they're a few other tricks one could play with white space
inside tags too. In general though, applications that create pretty
printed output don't treat white space as significant.

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page