xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: ksclarke AT stanford.edu, xom-interest AT lists.ibiblio.org
- Cc:
- Subject: Re: [XOM-interest] XML whitespace in text
- Date: Wed, 28 May 2003 20:32:08 -0400
At 1:39 PM -0700 5/28/03, ksclarke AT stanford.edu wrote:
Sorry, as someone kindly pointed out, I should have been a bit more
clear (often a problem of mine)... I'd like spaces to be maintained in
attributes and hard returns to be maintained in comments even when
pretty printing... or rather, I was wondering whether others would also
find this useful...
No, I don't think that's a common use case. The common cases are:
1. preserve it everywhere it's significant
2. preserve it nowhere
I'm not going to support 2**7 different combinations of preserving and not preserving white space depending on which nodes you do and do not care about.
You might be able to do what you're asking for by subclassing, but perhaps not. In any case, I suspect you should probably just go ahead and preserve white space everywhere.
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
-
[XOM-interest] XML whitespace in text,
ksclarke, 05/28/2003
- <Possible follow-up(s)>
-
[XOM-interest] XML whitespace in text,
ksclarke, 05/28/2003
-
Re: [XOM-interest] XML whitespace in text,
Elliotte Rusty Harold, 05/29/2003
- Re: [XOM-interest] XML whitespace in text, ksclarke, 05/29/2003
-
Re: [XOM-interest] XML whitespace in text,
Elliotte Rusty Harold, 05/29/2003
Archive powered by MHonArc 2.6.24.