xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Serializer and line breaks in attribute values
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Marc Ramsey <marc AT ranlog.com>, xom-interest AT lists.ibiblio.org
- Cc:
- Subject: Re: [XOM-interest] Serializer and line breaks in attribute values
- Date: Wed, 19 Nov 2003 10:55:05 -0500
At 1:42 AM -0800 11/19/03, Marc Ramsey wrote:
Hello,
When Serializer.setMaxLength has been called with a value greater than zero, line breaks will be inserted in attribute values which happen to cross the boundary. Is this the intended behavior, or should white space be preserved within attribute values?
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.
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
-
[XOM-interest] Serializer and line breaks in attribute values,
Marc Ramsey, 11/19/2003
- Re: [XOM-interest] Serializer and line breaks in attribute values, John Cowan, 11/19/2003
-
Re: [XOM-interest] Serializer and line breaks in attribute values,
Elliotte Rusty Harold, 11/19/2003
-
Re: [XOM-interest] Serializer and line breaks in attribute values,
John Cowan, 11/19/2003
-
Re: [XOM-interest] Serializer and line breaks in attribute values,
Marc Ramsey, 11/19/2003
- Re: [XOM-interest] Serializer and line breaks in attribute values, John Cowan, 11/19/2003
-
Re: [XOM-interest] Serializer and line breaks in attribute values,
Marc Ramsey, 11/19/2003
- Re: [XOM-interest] Serializer and line breaks in attribute values, Marc Ramsey, 11/19/2003
-
Re: [XOM-interest] Serializer and line breaks in attribute values,
John Cowan, 11/19/2003
Archive powered by MHonArc 2.6.24.