[jdom-interest] setIgnoringElementContentWhitespace inoperant ?
rlear at algorithmics.com
Thu Dec 9 11:27:03 PST 2004
Using perl-like regexp:
Delete all whitespace preceeding an Element open tag after a newline......
This strikes me as being the logical behaviour considering "pretty printing"
basically just manages indents.
From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org]On Behalf Of Elliotte Harold
Sent: Thursday, December 09, 2004 2:06 PM
To: Ken Roberts
Cc: Eric VERGNAUD; jdom-interest at jdom.org; Jason Hunter
Subject: Re: [jdom-interest] setIgnoringElementContentWhitespace
Ken Roberts wrote:
> I thought that was why this would be an option rather than default
> behavior? If you might be reading such a thing then this property would
> not be set, but if you have no such constraints and want dense output it
> would be a desirable feature.
No. The purpose of this is to eliminate boundary white space that is
inserted for purposes of indentation. It is not to change existing white
space in the text content of a document. That is a separate and
logically distinct operation. The appearance of insignificant boundary
white space is normally a document wide characteristic. the significance
of white space in text is normally determinable only on an element by
element basis. For instance in XHTML, it's not very important within a p
element, but it is important within a pre element.
Elliotte Rusty Harold elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
To control your jdom-interest membership:
This email and any files transmitted with it are confidential and
proprietary to Algorithmics Incorporated and its affiliates
("Algorithmics"). If received in error, use is prohibited. Please destroy,
and notify sender. Sender does not waive confidentiality or privilege.
Internet communications cannot be guaranteed to be timely, secure, error or
virus-free. Algorithmics does not accept liability for any errors or
omissions. Any commitment intended to bind Algorithmics must be reduced to
writing and signed by an authorized signatory.
More information about the jdom-interest