Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Serializer and line breaks in attribute values

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Marc Ramsey" <marc AT ranlog.com>
  • To: <xom-interest AT lists.ibiblio.org>, "Elliotte Rusty Harold" <elharo AT metalab.unc.edu>
  • Cc:
  • Subject: Re: [XOM-interest] Serializer and line breaks in attribute values
  • Date: Wed, 19 Nov 2003 10:47:58 -0800

> Yes, this is the intended behavior. XOM does everything it can to
> ensure preservation of white space, unless you tell it to not
> preserve white space. In this case, it will break anywhere it can.
>
> You should note that preserving white space in attributes is *very*
> tricky. Parsers often remove, trim, and compress white space in
> attributes before XOM ever sees them.

Thanks. This is one of those subtle nuances of XML that I was vaguely aware
of, but I never considered the full implications until it bit me...

Thanks,
Marc





Archive powered by MHonArc 2.6.24.

Top of Page